chore: daily development #639
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: Publish canyon-report | |
on: | |
push: | |
branches: [ "*" ] | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
# 新增条件:仅当提交信息匹配指定格式时触发 | |
if: | | |
contains(github.event.head_commit.message, ': (canyon-report): ') && | |
(github.ref == 'refs/heads/main') | |
steps: | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- run: pnpm install | |
- run: pnpm --filter=canyon-report publish -f --no-git-checks --access=public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |