π¦ using bun as package manager #15
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 & Build | |
run: | | |
pnpm install | |
pnpm build | |
- name: π Create Pull Request & Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm publish -r | |
commit: 'β chore: update version' | |
title: 'β chore: update version' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |