Auto-publish packages when updating default branch
This commit is contained in:
committed by
GitHub
parent
b6f43da455
commit
969be05f8f
@@ -1,6 +1,9 @@
|
||||
name: Publish npm packages
|
||||
|
||||
on:
|
||||
# Auto-publish every change to the default branch
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
bump:
|
||||
@@ -33,6 +36,6 @@ jobs:
|
||||
git config user.email github-actions@github.com
|
||||
|
||||
- name: Publish packages
|
||||
run: npx lerna publish ${{ github.event.inputs.bump }} --yes
|
||||
run: npx lerna publish ${{ github.event.inputs.bump || 'patch' }} --yes
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user