Skip to content

Commit

Permalink
Only build on release
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-d committed Sep 29, 2023
1 parent 71f151b commit 576c59e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Node.js Package

on:
push:
branches:
- main
release:
types:
- published
Expand All @@ -24,7 +21,7 @@ jobs:
needs: test
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
contents: read
steps:
- uses: actions/checkout@v3
Expand All @@ -35,6 +32,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci --ignore-scripts
- run: npm publish --provenance --access public
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 576c59e

Please sign in to comment.