feat: setup changesets, changed default project name, setup cd #4
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 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: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |