2023-03-03 22:53:47 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
name: release-please
|
|
|
|
jobs:
|
|
|
|
release-please:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: google-github-actions/release-please-action@v3
|
2023-03-06 08:53:41 +00:00
|
|
|
id: release
|
2023-03-03 22:53:47 +00:00
|
|
|
with:
|
|
|
|
release-type: node
|
2023-03-06 08:53:41 +00:00
|
|
|
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 }}
|