v1.8.0 #32
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
| # This workflow will run tests and then publish a package to npm when a release is created. | |
| name: npm Package | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| test: | |
| uses: ./.github/workflows/test.yml | |
| publish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install pnpm | |
| run: npm install pnpm -g | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Publish to npm | |
| run: npm publish |