Skip to content

fix: 修复翻译中的变量显示bug #32

fix: 修复翻译中的变量显示bug

fix: 修复翻译中的变量显示bug #32

Workflow file for this run

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}}