Skip to content

Commit

Permalink
chore: split release please to two jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash committed Dec 17, 2023
1 parent 365ef39 commit 1d52a5c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release-please.yml
Expand Up @@ -13,21 +13,24 @@ jobs:
release-please:
runs-on: ubuntu-latest
environment: production
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
npm-publish:
environment: production
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 12
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
cache: "npm"
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 1d52a5c

Please sign in to comment.