Skip to content

Commit 7927d57

Browse files
fix(release): allow publishing with no tag; publish one package at a time (#1689)
1 parent a050295 commit 7927d57

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/prod-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
description: '[Optional] Override semantic versioning with explict version (allowed values: "patch", "minor", "major", or explicit version)'
1212
default: ''
1313
dist_tag:
14-
description: 'NPM distribution tag'
14+
description: 'NPM dist-tag to publish under; delete to publish without an explicit dist-tag'
1515
required: false
1616
default: 'latest'
1717

@@ -109,10 +109,16 @@ jobs:
109109
run: npm install -g npm@latest
110110
- run: npm ci
111111
- run: npm run build --if-present
112-
- run: npx lerna publish from-package --yes --dist-tag "$DIST_TAG"
112+
- name: Publish
113113
env:
114114
NPM_CONFIG_PROVENANCE: true
115115
DIST_TAG: ${{ github.event.inputs.dist_tag }}
116+
run: |
117+
if [ -n "$DIST_TAG" ]; then
118+
npx lerna publish from-package --yes --concurrency 1 --dist-tag "$DIST_TAG"
119+
else
120+
npx lerna publish from-package --yes --concurrency 1
121+
fi
116122
117123
# Once publishing is complete, validate that the published packages are useable
118124
validate:

0 commit comments

Comments
 (0)