Skip to content

update README

update README #13

Workflow file for this run

name: Public Npm
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
name: 'publish npm'
environment: npm
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
default_branch: 'main'
- run: yarn
- run: yarn build
- run: npm publish --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # 跟前面步骤中的 NPM_AUTH_TOKEN 保持一致