fix: 修复vue的script里面装饰器装换失败的bug #39
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
name: 发布npm包 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
auto_release_npm_package: | |
if: ${{ !contains(github.event.head_commit.message, 'release') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git checkout $CI_COMMIT_REF_NAME | |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN | |
npm config set scope "@tenado" | |
npm config list | |
SPACE_CHAR=" " | |
npx standard-version --releaseCommitMessageFormat "chore(release):${SPACE_CHAR}{{currentTag}}" | |
git push --follow-tags origin $CI_COMMIT_REF_NAME | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_NODE_AUTH_TOKEN}} |