publish #2
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] | |
| # support manual release in case something goes wrong and needs to be repeated or tested | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: tag that needs to publish | |
| type: string | |
| required: true | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm update -g npm | |
| - run: npm install | |
| - run: npm run build | |
| - run: npm run prepack | |
| - run: npm publish --access public | |
| - run: npm run postpack |