Skip to content

Commit cb883a3

Browse files
committed
feat: Skip canary deploys for Dependabot PRs
1 parent d5b7b9d commit cb883a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: npm run test
2727

2828
- name: Create .npmrc
29-
if: github.event_name == 'push'
29+
if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
3030
run: |
3131
cat << EOF > "$HOME/.npmrc"
3232
//registry.npmjs.org/:_authToken=$NPM_TOKEN
@@ -35,7 +35,7 @@ jobs:
3535
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}
3636

3737
- name: Publish canary version
38-
if: github.event_name == 'push'
38+
if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
3939
run: |
4040
echo "$( jq '.version = "0.0.0"' package.json )" > package.json
4141
echo -e "---\n'@primer/components': patch\n---\n\nFake entry to force publishing" > .changeset/force-snapshot-release.md
@@ -45,7 +45,7 @@ jobs:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646

4747
- name: Output canary version number
48-
if: github.event_name == 'push'
48+
if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
4949
run: |
5050
name=$(jq -r .name package.json)
5151
version=$(jq -r .version package.json)

0 commit comments

Comments
 (0)