fix: release

This commit is contained in:
Niccolo Borgioli 2023-03-06 09:53:41 +01:00
parent c1cb469f3b
commit fe0fb941ed
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
2 changed files with 14 additions and 19 deletions

View File

@ -8,6 +8,19 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: google-github-actions/release-please-action@v3 - uses: google-github-actions/release-please-action@v3
id: release
with: with:
release-type: node release-type: node
package-name: release-please-action package-name: formhero
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: ./.github/actions/build
if: ${{ steps.release.outputs.release_created }}
- run: pnpm test
if: ${{ steps.release.outputs.release_created }}
- run: pnpm publish
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -1,18 +0,0 @@
name: Release
on:
release:
types:
- published
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/build
- run: pnpm test
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}