Skip to content

Commit 1211d3d

Browse files
authored
chore: add a workflow input to publish from-package (#2664)
1 parent 100ab3d commit 1211d3d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ name: publish
44

55
on:
66
workflow_dispatch: # Manually trigger. Colon is required.
7+
inputs:
8+
from-package:
9+
description: 'Check to publish from-package instead of the default publish. This is used to publish packages that have already been version bumped and tagged by a previous workflow run, but failed to publish for some reason.'
10+
required: false
11+
type: boolean
12+
default: false
713
schedule:
814
- cron: '5 17 * * 4' # Thursdays at 17:05 UTC (09:05 PST / 10:05 PDT)
915

@@ -55,7 +61,14 @@ jobs:
5561
- name: Publish
5662
env:
5763
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
run: cd plugins && npx lerna publish --no-private --conventional-commits --create-release github --yes
64+
FROM_PACKAGE: ${{ github.event.inputs['from-package'] }}
65+
run: |
66+
cd plugins
67+
if [ "${FROM_PACKAGE}" = "true" ]; then
68+
npx lerna publish from-package --yes --loglevel silly
69+
else
70+
npx lerna publish --no-private --conventional-commits --create-release github --yes --loglevel silly
71+
fi
5972
6073
update-gh-pages:
6174
name: Update GitHub Pages

0 commit comments

Comments
 (0)