fix:safari lookbehind #31
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 NPM Package | |
| on: [push] | |
| # on: | |
| # push: | |
| # branches: | |
| # - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22" | |
| - name: Install && Build | |
| run: | | |
| npm install | |
| 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 | |
| # publish-gpr: | |
| # runs-on: ubuntu-latest | |
| # permissions: | |
| # contents: read | |
| # packages: write | |
| # steps: | |
| # - name: Checkout | |
| # uses: actions/checkout@v6 | |
| # - name: Use Node.js | |
| # uses: actions/setup-node@v6 | |
| # with: | |
| # node-version: "24" | |
| # registry-url: https://npm.pkg.github.com | |
| # scope: "@jx3box" | |
| # - name: Publish Package | |
| # run: npm publish | |
| # env: | |
| # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |