From 69a4d9a7dc4bcd258ccf569eb18141340e89cc5e Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 25 May 2023 20:03:30 +0800 Subject: [PATCH] ci: fix _authToken in publish --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b0781ecc2..e72eccf84 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,12 +27,16 @@ jobs: - name: Setup uses: ./.github/actions/setup + - name: Setup NPM auth token + run: | + npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} + - name: Dry Run Release if: ${{ inputs.dry-run }} run: | yarn release ${{ inputs.increment }} -d --ci - - name: Release + - name: NPM Publish if: ${{ !inputs.dry-run }} run: | git config --global user.email "${{ secrets.GIT_EMAIL }}"