Skip to content

Commit

Permalink
Merge pull request #21 from beuluis/feature/feature-dist-tag
Browse files Browse the repository at this point in the history
Feature/feature dist tag
  • Loading branch information
beuluis committed Feb 19, 2023
2 parents aa58b39 + 24b92c3 commit 77bed2a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/feature-npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Handling feature dist-tag'

on:
pull_request:
branches:
- main
types:
- opened # pr is created
- reopened # pr is reopened
- synchronize # pr got new commit
- closed # pr is merged/closed

jobs:
publish-feature-tag:
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
uses: beuluis/reusable-workflows/.github/workflows/publish-npm.yml@main
with:
dist_tag: ${{ github.head_ref }}
secrets: inherit

remove-feature-tag:
if: ${{ github.event.action == 'closed' }}
uses: beuluis/reusable-workflows/.github/workflows/remove-dist-tag-npm.yml@main
with:
dist_tag: ${{ github.head_ref }}
secrets: inherit

0 comments on commit 77bed2a

Please sign in to comment.