Skip to content

Commit ef398d9

Browse files
committed
Update versions.
1 parent df25812 commit ef398d9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ jobs:
2222
run: |
2323
echo 'Only the tags "latest" or "next" are supported. You entered "${{ github.event.inputs.tag }}"'
2424
exit 1
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-node@v4
2727
with:
28-
node-version: '16.x'
28+
node-version: 'latest'
2929
registry-url: https://registry.npmjs.org/
30-
- uses: actions/cache@v2
30+
- uses: actions/cache@v4
3131
id: npm-cache
3232
with:
3333
path: '**/node_modules'
34-
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
34+
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}-${{ secrets.NPM_CACHE_VERSION }}
3535
- name: Install dependencies
3636
if: steps.npm-cache.outputs.cache-hit != 'true'
3737
run: npm ci
38+
- run: npm run build --if-present
3839
- run: npm test
3940
- uses: JS-DevTools/npm-publish@v1
4041
with:

0 commit comments

Comments
 (0)