File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments