Skip to content

Version Packages

Version Packages #6

Workflow file for this run

name: Publish to npm beta
on:
push:
branches:
- "beta"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: use node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: install dependencies
run: pnpm install
- name: build and publish
uses: changesets/action@v1
with:
publish: pnpm pub:beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}