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