diff --git a/.github/workflows/prod-release.yml b/.github/workflows/prod-release.yml index c0e650243..c89b3cb4b 100644 --- a/.github/workflows/prod-release.yml +++ b/.github/workflows/prod-release.yml @@ -11,7 +11,7 @@ on: description: '[Optional] Override semantic versioning with explict version (allowed values: "patch", "minor", "major", or explicit version)' default: '' dist_tag: - description: 'NPM distribution tag' + description: 'NPM dist-tag to publish under; leave empty to publish without an explicit dist-tag' required: false default: 'latest' @@ -109,10 +109,16 @@ jobs: run: npm install -g npm@latest - run: npm ci - run: npm run build --if-present - - run: npx lerna publish from-package --yes --dist-tag "$DIST_TAG" + - name: Publish env: NPM_CONFIG_PROVENANCE: true DIST_TAG: ${{ github.event.inputs.dist_tag }} + run: | + if [ -n "$DIST_TAG" ]; then + npx lerna publish from-package --yes --concurrency 1 --dist-tag "$DIST_TAG" + else + npx lerna publish from-package --yes --concurrency 1 + fi # Once publishing is complete, validate that the published packages are useable validate: diff --git a/package-lock.json b/package-lock.json index 007216541..56e3a0456 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13785,6 +13785,18 @@ } } }, + "node_modules/lerna/node_modules/@types/node": { + "version": "26.1.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.1.1.tgz", + "integrity": "sha512-nxAkRSVkN1Y0JC1W8ky/fTfkGsMmcrRsbx+3XoZE+rMOX71kLYTV7fLXpqud1GpbpP5TuffXFqfX7fH2GgZREw==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "undici-types": "~8.3.0" + } + }, "node_modules/lerna/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -20943,6 +20955,15 @@ "node": ">=18.17" } }, + "node_modules/undici-types": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz", + "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true + }, "node_modules/universal-user-agent": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",