Release & Publish to NPM #80
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: 'Release & Publish to NPM' | |
| on: workflow_dispatch | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for OIDC authentication | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Initialize Git user | |
| run: | | |
| git config user.name ${{github.actor}} | |
| git config --global user.name "Release Workflow" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'yarn' | |
| - name: Update NPM | |
| run: npm install -g npm@latest | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile | |
| - name: Release | |
| run: yarn release | |
| env: | |
| GITHUB_TOKEN: ${{secrets.PAT}} | |
| - name: End Message | |
| run: echo "All done" |