Skip to content

Commit ff79935

Browse files
authored
Add condition to skip publish for dependabot
1 parent e3c16ea commit ff79935

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
@@ -60,6 +60,7 @@ jobs:
6060
- name: Disable pre- and post-publish actions
6161
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
6262
- uses: JS-DevTools/npm-publish@v1
63+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
6364
with:
6465
token: ${{ secrets.NPM_TOKEN }}
6566
tag: ${{ env.GITHUB_REF_SLUG }}
@@ -78,6 +79,7 @@ jobs:
7879
- name: Disable pre- and post-publish actions
7980
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
8081
- uses: JS-DevTools/npm-publish@v1
82+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
8183
with:
8284
token: ${{ secrets.NPM_TOKEN }}
8385
tag: latest

0 commit comments

Comments
 (0)