v2.9.57 #424
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# github action of publish package to npm via lerna | |
name: lerna-publish-package | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
# 发布任务不检查代码风格 | |
# lint: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - run: npm run lint | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
npm i | |
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" >> $HOME/.npmrc 2> /dev/null | |
npm run tsc:build | |
npm run lerna:publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |