v0.4.18 #10
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: | |
| release: | |
| types: [published] | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| release: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Set up Node" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Update npm | |
| # We need to make sure we're using npm v11.5+ to use Trusted Publishers | |
| # Reference: https://docs.npmjs.com/trusted-publishers | |
| run: npm install -g npm@11 | |
| - name: "Install dependencies" | |
| run: npm ci | |
| - name: "Publish package on NPM" | |
| run: npm publish --access public |