chore: release main #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
command: manifest | |
monorepo-tags: true | |
- uses: actions/setup-node@v2 | |
if: ${{ steps.release.outputs.releases_created }} | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Checkout repository | |
if: ${{ steps.release.outputs.releases_created }} | |
uses: actions/checkout@v3 | |
- name: Build | |
if: ${{ steps.release.outputs.releases_created }} | |
run: yarn && yarn run build | |
- name: Publish project | |
if: ${{ steps.release.outputs.releases_created }} | |
run: yarn run lerna:publish from-package --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |