Skip to content

Commit

Permalink
add checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
beuluis committed Feb 20, 2023
1 parent 24b92c3 commit 3bc6f82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To publish this PR to the registry select this checkbox.

- [ ] Publish to registry
11 changes: 10 additions & 1 deletion .github/workflows/feature-npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ on:
- closed # pr is merged/closed

jobs:
publish-feature-tag:
check-pr:
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
uses: bahmutov/should-run-github-action@v1
id: check-checkbox
with:
checkbox_text: 'Publish to registry'
env:
GITHUB_EVENT: ${{ toJson(github.event) }}

publish-feature-tag:
if: ${{ steps.check-checkbox.outputs.shouldRun }}
uses: beuluis/reusable-workflows/.github/workflows/publish-npm.yml@main
with:
dist_tag: ${{ github.head_ref }}
Expand Down

0 comments on commit 3bc6f82

Please sign in to comment.