Skip to content

Commit

Permalink
chore(flow): update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 3, 2021
1 parent c6f1304 commit 1de0f56
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1de0f56

Please sign in to comment.