Skip to content

build: add workflow_dispatch #12

build: add workflow_dispatch

build: add workflow_dispatch #12

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
include-v-in-tags: false
- uses: actions/setup-node@v2
if: ${{ steps.release.outputs.releases_created }}
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- 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 }}