Skip to content

Commit

Permalink
build: update dependencies and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchis committed Nov 9, 2024
1 parent a71b6e5 commit bd8b3b7
Show file tree
Hide file tree
Showing 7 changed files with 6,465 additions and 5,550 deletions.
1 change: 1 addition & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
44 changes: 28 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
name: CI
on:
push:
branches: [ main ]
branches: [main]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Astro check
run: npm run check
- name: Build project
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
BRANCH: gh-pages
FOLDER: dist
deploy:
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm ci

- name: Astro check
run: npm run check

- name: Build project
run: npm run build

- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: dist/

- name: Deploy to GitHub Pages
env:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
uses: actions/checkout@master

- name: Setup node env 🏗
uses: actions/setup-node@v2.3.0
uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node }}
check-latest: true
node-version-file: ".nvmrc"
cache: "npm"

- name: Cache node_modules 📦
uses: actions/cache@v2.1.6
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.11.0
Loading

0 comments on commit bd8b3b7

Please sign in to comment.