feat: 校验增加关联字段名转换 #4
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: Node.js CI | |
on: | |
push: | |
paths: | |
- 'package.json' | |
- '.github/workflows/build.yml' | |
- 'test/*.js' | |
jobs: | |
build: | |
runs-on: macos-latest | |
# 任务的步骤 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7.5.2 | |
- run: pnpm i | |
- run: pnpm build | |
# 单元测试 | |
- run: pnpm test | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |