10.3.0 #77
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: Publish | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [released] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| publish: | |
| name: Upload archives | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # OIDC for npm trusted publishers | |
| contents: read | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Upgrade npm | |
| run: npm install -g npm@11.7.0 | |
| - name: Build | |
| run: | | |
| yarn | |
| yarn prepare | |
| - name: Publish to npm | |
| run: npm publish |