2525 - 22.x
2626
2727 steps :
28- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v5
2929 - name : Use Node.js ${{ matrix.node-version }}
30- uses : actions/setup-node@v1
30+ uses : actions/setup-node@v5
3131 with :
3232 node-version : ${{ matrix.node-version }}
3333 - run : npm ci
@@ -48,18 +48,19 @@ jobs:
4848 needs : build
4949 runs-on : ubuntu-latest
5050 steps :
51- - uses : actions/download-artifact@v4
51+ - uses : actions/download-artifact@v5
5252 with :
5353 name : build
54- - uses : actions/setup-node@v1
54+ - uses : actions/setup-node@v5
5555 with :
5656 node-version : 20.x
57- - uses : rlespinasse/github-slug-action@v3 .x
57+ - uses : rlespinasse/github-slug-action@v4 .x
5858 - name : Append commit hash to package version
5959 run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
6060 - name : Disable pre- and post-publish actions
6161 run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
62- - uses : JS-DevTools/npm-publish@v1
62+ - uses : JS-DevTools/npm-publish@v4
63+ if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
6364 with :
6465 token : ${{ secrets.NPM_TOKEN }}
6566 tag : ${{ env.GITHUB_REF_SLUG }}
@@ -69,15 +70,16 @@ jobs:
6970 runs-on : ubuntu-latest
7071 if : github.ref == 'refs/heads/main'
7172 steps :
72- - uses : actions/download-artifact@v4
73+ - uses : actions/download-artifact@v5
7374 with :
7475 name : build
75- - uses : actions/setup-node@v1
76+ - uses : actions/setup-node@v5
7677 with :
7778 node-version : 20.x
7879 - name : Disable pre- and post-publish actions
7980 run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
80- - uses : JS-DevTools/npm-publish@v1
81+ - uses : JS-DevTools/npm-publish@v4
82+ if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
8183 with :
8284 token : ${{ secrets.NPM_TOKEN }}
8385 tag : latest
0 commit comments