Skip to content

Commit

Permalink
Change publish-npm workflow on event
Browse files Browse the repository at this point in the history
  • Loading branch information
343dev committed Oct 9, 2024
1 parent fe85d62 commit 989eb60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Publish Package to npmjs

on:
push:
workflow_run:
workflows: [Node.js CI]
types: [completed]
branches: [main]

jobs:
publish_to_npm:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
actions: write # “andymckay/cancel-action” requires “write” access to the “actions” permission
id-token: write # Provenance generation in GitHub Actions requires “write” access to the “id-token” permission
Expand Down

0 comments on commit 989eb60

Please sign in to comment.