1818 - 20.x
1919 - 22.x
2020 steps :
21- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v5
2222 - name : Use Node.js ${{ matrix.node-version }}
23- uses : actions/setup-node@v4
23+ uses : actions/setup-node@v5
2424 with :
2525 node-version : ${{ matrix.node-version }}
2626 - run : npm ci
@@ -42,10 +42,10 @@ jobs:
4242 runs-on : ubuntu-latest
4343 if : github.ref == 'refs/heads/main'
4444 steps :
45- - uses : actions/download-artifact@v4
45+ - uses : actions/download-artifact@v5
4646 with :
4747 name : build
48- - uses : peaceiris/actions-gh-pages@v3
48+ - uses : peaceiris/actions-gh-pages@v4
4949 with :
5050 github_token : ${{ secrets.GITHUB_TOKEN }}
5151 publish_dir : .
@@ -54,18 +54,19 @@ jobs:
5454 needs : build
5555 runs-on : ubuntu-latest
5656 steps :
57- - uses : actions/download-artifact@v4
57+ - uses : actions/download-artifact@v5
5858 with :
5959 name : build
60- - uses : actions/setup-node@v4
60+ - uses : actions/setup-node@v5
6161 with :
6262 node-version : 20.x
6363 - uses : rlespinasse/github-slug-action@v4.x
6464 - name : Append commit hash to package version
6565 run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
6666 - name : Disable pre- and post-publish actions
6767 run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
68- - uses : JS-DevTools/npm-publish@v2
68+ - uses : JS-DevTools/npm-publish@v4
69+ if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
6970 with :
7071 token : ${{ secrets.NPM_TOKEN }}
7172 tag : ${{ env.GITHUB_REF_SLUG }}
@@ -75,15 +76,16 @@ jobs:
7576 runs-on : ubuntu-latest
7677 if : github.ref == 'refs/heads/main'
7778 steps :
78- - uses : actions/download-artifact@v4
79+ - uses : actions/download-artifact@v5
7980 with :
8081 name : build
81- - uses : actions/setup-node@v4
82+ - uses : actions/setup-node@v5
8283 with :
8384 node-version : 20.x
8485 - name : Disable pre- and post-publish actions
8586 run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
86- - uses : JS-DevTools/npm-publish@v2
87+ - uses : JS-DevTools/npm-publish@v4
88+ if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
8789 with :
8890 token : ${{ secrets.NPM_TOKEN }}
8991 tag : latest
0 commit comments