Skip to content

Publish

Publish #2

Workflow file for this run

name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version-file: '.nvmrc'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Publish to npm
uses: changesets/action@v1
with:
publish: pnpm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}