Skip to content

Commit f68ba42

Browse files
authored
Add condition to skip npm publish for dependabot
1 parent 05d4281 commit f68ba42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
- name: Disable pre- and post-publish actions
6868
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
6969
- uses: JS-DevTools/npm-publish@v1
70+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
7071
with:
7172
token: ${{ secrets.NPM_TOKEN }}
7273
tag: ${{ env.GITHUB_REF_SLUG }}
@@ -85,6 +86,7 @@ jobs:
8586
- name: Disable pre- and post-publish actions
8687
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
8788
- uses: JS-DevTools/npm-publish@v1
89+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
8890
with:
8991
token: ${{ secrets.NPM_TOKEN }}
9092
tag: latest

0 commit comments

Comments
 (0)