Update check-dist.yml

This commit is contained in:
Alice King Tai Poon 2022-06-05 16:42:59 +08:00 committed by GitHub
parent 53e15292cd
commit ce0e0b088d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,15 +18,15 @@ on:
jobs: jobs:
check-dist: check-dist:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@main
- name: Set Node.js 16.x - name: Set Node.js 18.x
uses: actions/setup-node@v3 uses: actions/setup-node@main
with: with:
node-version: 16.x node-version: 18.x
cache: npm cache: npm
- name: Install dependencies - name: Install dependencies
@ -45,7 +45,7 @@ jobs:
id: diff id: diff
# If index.js was different than expected, upload the expected version as an artifact # If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@main
if: ${{ failure() && steps.diff.conclusion == 'failure' }} if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with: with:
name: dist name: dist