fix: imgs #24
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: Node.js Package | |
| on: [push] | |
| # on: | |
| # release: | |
| # types: [created] | |
| jobs: | |
| publish-npm: | |
| # needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| # npmjs 发布走 npm trusted publisher(OIDC),这里不要再传 NPM_TOKEN。 | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org/ | |
| # - run: npm ci | |
| - run: npm publish --provenance --access public |