Skip to content

Commit f7aa177

Browse files
authored
Add condition to skip publish for dependabot
1 parent edb6635 commit f7aa177

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
@@ -52,6 +52,7 @@ jobs:
5252
- name: Disable pre- and post-publish actions
5353
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
5454
- uses: JS-DevTools/npm-publish@v1
55+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
5556
with:
5657
token: ${{ secrets.NPM_TOKEN }}
5758
tag: ${{ env.GITHUB_REF_SLUG }}
@@ -70,6 +71,7 @@ jobs:
7071
- name: Disable pre- and post-publish actions
7172
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
7273
- uses: JS-DevTools/npm-publish@v1
74+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
7375
with:
7476
token: ${{ secrets.NPM_TOKEN }}
7577
tag: latest

0 commit comments

Comments
 (0)