From bc2ebae93db0ce8f51fb084127dbd7e97a3e3f5f Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Tue, 18 Jun 2024 16:28:14 +0800 Subject: [PATCH] fix: stable gh workflow --- .github/workflows/stable.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stable.yaml b/.github/workflows/stable.yaml index 0e859c7bb..3055d206e 100644 --- a/.github/workflows/stable.yaml +++ b/.github/workflows/stable.yaml @@ -33,12 +33,15 @@ jobs: - name: Build dependencies run: | + lerna clean --yes node etc/bootstrapEnv yarn install --ignore-engines yarn build - - name: 'Setup npm' - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc + - name: Setup npm + run: | + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc + npm whoami env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -49,6 +52,11 @@ jobs: lerna version patch --conventional-commits --conventional-graduate --force-git-tag --yes lerna publish from-git --force-git-tag --dist-tag latest --yes --summary-file + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + - name: 'Broadcast published versions on Slack' run: node etc/slack --api=$SLACK_API --actor=$GIT_ACTOR --commit-message=$GIT_LATEST_COMMIT_MESSAGE env: