From 969be05f8f158e027e4f10f9607195d42446154c Mon Sep 17 00:00:00 2001 From: Christopher Schleiden Date: Thu, 17 Nov 2022 11:35:01 -0800 Subject: [PATCH] Auto-publish packages when updating default branch --- .github/workflows/publish-npm.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index c496c15..3d8956c 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -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 }}