Skip to content

refactor: onSubmit handler should have correct type (#637) #464

refactor: onSubmit handler should have correct type (#637)

refactor: onSubmit handler should have correct type (#637) #464

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release Please
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
releases_created: ${{steps.release.outputs.releases_created}}
paths_released: ${{steps.release.outputs.paths_released}}
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
command: manifest
publish:
name: Publish npm packages
needs: release
if: ${{needs.release.outputs.releases_created}}
runs-on: ubuntu-latest
strategy:
matrix:
path_released: ${{fromJson(needs.release.outputs.paths_released)}}
steps:
- uses: actions/checkout@v3
if: ${{matrix.path_released != ''}}
- uses: ./.github/actions/pnpm
if: ${{matrix.path_released != ''}}
- run: pnpm lint
if: ${{matrix.path_released != ''}}
- run: pnpm test
if: ${{matrix.path_released != ''}}
- name: pnpm publish
if: ${{matrix.path_released != ''}}
run: |
cd ${{ matrix.path_released }}
pnpm install
pnpm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}