π¦ added changesets #1
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 CLI Tool | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout | |
uses: actions/checkout@v3 | |
- name: π’ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: π‘ Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.4.0 | |
run_install: false | |
- name: βοΈ Install packages | |
run: pnpm install | |
- name: π Create Pull Request & Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm run build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |