Skip to content

Commit 1116141

Browse files
committed
update ci.yml
1 parent ba23d6a commit 1116141

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ jobs:
5353
- name: Disable pre- and post-publish actions
5454
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
5555
- uses: JS-DevTools/npm-publish@v4.1.0
56+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
5657
with:
5758
token: ${{ secrets.NPM_TOKEN }}
5859
tag: ${{ env.GITHUB_REF_SLUG }}
60+
5961
npm-publish-latest:
6062
needs: [build, npm-publish-build]
6163
runs-on: ubuntu-latest
@@ -69,7 +71,8 @@ jobs:
6971
node-version: 20.x
7072
- name: Disable pre- and post-publish actions
7173
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
72-
- uses: JS-DevTools/npm-publish@v1
74+
- uses: JS-DevTools/npm-publish@v4.1.0
75+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
7376
with:
7477
token: ${{ secrets.NPM_TOKEN }}
7578
tag: latest

0 commit comments

Comments
 (0)