Skip to content

add publish access #104

add publish access

add publish access #104

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Publish & Deploy
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm i
- name: Create release PR or publish to npm
uses: changesets/action@c2918239208f2162b9d27a87f491375c51592434
with:
version: pnpm run version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}