diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7376af9e1..b07b10e4c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,11 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 + check-latest: true + + - name: Update npm + run: npm install -g npm@latest - name: Install dependencies run: npm ci @@ -35,6 +39,7 @@ jobs: needs: build environment: name: github-pages + steps: - name: Deploy to GitHub Pages uses: actions/deploy-pages@v4 diff --git a/.github/workflows/deploy.yml.bak b/.github/workflows/deploy.yml.bak index a04283150..7376af9e1 100644 --- a/.github/workflows/deploy.yml.bak +++ b/.github/workflows/deploy.yml.bak @@ -12,34 +12,29 @@ permissions: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 - name: Install dependencies - run: npm install + run: npm ci - name: Build Quartz run: npx quartz build - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./public deploy: runs-on: ubuntu-latest needs: build - environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4