Publish Release #3
Workflow file for this run
This file contains 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 Release | |
on: | |
release: | |
types: [released] | |
jobs: | |
npm-publish: | |
name: npm publish | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
if: github.repository_owner == 'sitcommunity' | |
steps: | |
- name: Checkout Repositories | |
uses: actions/checkout@v4 | |
- name: Install Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
uses: ./.github/packages/pnpm | |
- name: Build dependencies | |
run: pnpm run test | |
- name: Build and publish package | |
run: | | |
pnpm build | |
pnpm publish --provenance --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |