Skip to content

Commit

Permalink
fix: publish npm package on successful release-please execution (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxcabe authored Dec 3, 2023
1 parent 02592dd commit 570dac3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ permissions:
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v3 # Handle local releases
id: release
with:
release-type: node
package-name: openbim-components
- uses: ./.github/workflows/publish-npm.yml # Publish to npmjs
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
publish-npm:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/publish-npm.yml # Publish to npmjs
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Publish only if release-please creates a published release

0 comments on commit 570dac3

Please sign in to comment.