5.0.10 #26
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 to NPM | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
# Setup .npmrc file to publish to npm | |
- name: Install Node 22.0 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.0' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'pnpm' | |
- name: Install deps and build (with cache) | |
run: pnpm install | |
- name: Publish build | |
run: pnpm publish --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |