Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix npm publish trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed Dec 4, 2023
1 parent 32e8b82 commit 5641fdc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publish Packages to NPM and TBDocs

on:
release:
types: [created]
workflow_run:
workflows: ["Create GH Release"]
types:
- completed
workflow_dispatch:

# Allow only one concurrent deployment,but do NOT cancel in-progress runs as
Expand All @@ -19,6 +21,8 @@ jobs:
publish-npm:
name: NPM Publish
runs-on: ubuntu-latest
# only runs if workflow_run is completed successfully or manually workflow dispatch
if: github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'

strategy:
max-parallel: 1
Expand Down

0 comments on commit 5641fdc

Please sign in to comment.