Skip to content

Commit

Permalink
bugfix: Attempt at fixing #26 by excluding PRs from dependabot[bot]
Browse files Browse the repository at this point in the history
… from triggering an `npm publish`; also move to node-20 for future support
  • Loading branch information
zsteinkamp committed Apr 18, 2024
1 parent 608ece1 commit 1228be6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/reference-lib.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ defaults:
working-directory: ./reference-lib
shell: bash


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -23,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@nginxinc'
- name: Install dependencies
Expand All @@ -35,7 +34,7 @@ jobs:
- name: get package-version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: publish package
if: github.event_name == 'push'
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1228be6

Please sign in to comment.