feat(cli): 重构 init 流程为团队优先顺序并更新文档 #9
Workflow file for this run
This file contains hidden or 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: Publish TMLSPEC CLI | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Publish package | |
| uses: Time-Machine-Lab/TML-Github_Actions/actions/publish-node-package@main | |
| with: | |
| cache_dependency_path: TMLSPEC-cli/package-lock.json | |
| node_version: '20.x' | |
| working_directory: TMLSPEC-cli | |
| build_command: npm run build | |
| publish_command: npm publish | |
| tag_prefix: v | |
| registry_url: ${{ secrets.NPM_REGISTRY_URL }} | |
| npm_token: ${{ secrets.NPM_TOKEN }} |