publish to npm #92
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 to npm | |
| on: [workflow_dispatch] | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| # Setup .npmrc file to publish to npm | |
| - uses: actions/setup-node@v6 | |
| with: | |
| registry-url: "https://registry.npmjs.org" | |
| # Use exact Node & Yarn versions from package.json (Volta) | |
| - uses: volta-cli/action@v4 | |
| - run: yarn install --frozen-lockfile | |
| - run: npm publish |