Skip to content

Commit

Permalink
Update publish.yml (#315)
Browse files Browse the repository at this point in the history
Workflow failing on version mismatches
  • Loading branch information
AardWolf authored Feb 5, 2025
1 parent f0483ff commit 67251cb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ jobs:

- name: Checkout PR
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Checkout
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: master

- name: Setup Pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: npm
- name: Update npm to latest
run: npm i --prefer-online --no-fund --no-audit -g npm@latest
Expand All @@ -54,7 +54,7 @@ jobs:
- run: ./build/deploy.sh

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './out'

Expand All @@ -73,7 +73,7 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
# internal-only alpha, not available yet: https://github.com/actions/deploy-pages/pull/61
# with:
# preview: ${{ github.event_name == 'pull_request_target' }}

0 comments on commit 67251cb

Please sign in to comment.