diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43dd49d6798..753f372ae76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,11 @@ on: description: 'pre-release' required: false default: false + skip_versioning: + type: boolean + description: 'Skip lerna version step' + required: false + default: false jobs: test: @@ -81,6 +86,7 @@ jobs: yarn install --immutable - name: version + if: github.event.inputs.skip_versioning != 'true' run: | npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} @@ -92,6 +98,7 @@ jobs: --create-release github env: GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} NPM_CONFIG_PROVENANCE: true - name: build @@ -101,6 +108,7 @@ jobs: run: ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish from-git env: GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} NPM_CONFIG_PROVENANCE: true ### Semantic Release Bot comments for issues and PRs ###