From 1de0f56fd3eedc9c533dc6b2a859f20ce2527308 Mon Sep 17 00:00:00 2001 From: janrywang Date: Tue, 3 Aug 2021 18:06:10 +0800 Subject: [PATCH] chore(flow): update release.yml --- .github/workflows/release.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ce4ea7044a..948ddf7219c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,20 +8,21 @@ on: jobs: release: if: contains(github.event.head_commit.message, 'chore(versions)') - runs-on: ${{ matrix.os }} - strategy: - matrix: - node_version: [11.x] - os: [ubuntu-latest] steps: - - uses: actions/checkout@v1 - - run: | - echo "registry=\"https://registry.npmjs.org/:_authToken=$NPM_TOKEN\"" > .yarnrc + + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: | yarn -v yarn --ignore-engines yarn build - lerna publish from-package --yes --ignore-changes --dist-tag next && ts-node scripts/release release + lerna publish from-package --yes --dist-tag next && ts-node scripts/release release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} NODE_OPTIONS: --max_old_space_size=4096 + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} + ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }} + REGISTRY: https://registry.npmjs.org