Repository navigation
v0.17.0 — 设置卡可折叠分区 #38
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: npm-publish | |
| # Trusted publishing (OIDC) — no npm token needed: | |
| # npmjs.com package settings must declare this workflow file name | |
| # (npm-publish.yml) as a trusted publisher for the matching repo. | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| id-token: write # Required for OIDC (npm trusted publishing) | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 # npm CLI 11.x — OIDC trusted publishing requires npm >= 11.5.1 | |
| registry-url: https://registry.npmjs.org | |
| package-manager-cache: false | |
| - name: npm publish (OIDC) | |
| run: npm publish --access public |