formhero/.github/workflows/release-please.yml
2023-03-06 09:53:41 +01:00

27 lines
695 B
YAML

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
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 }}