Merge pull request #226 from tscircuit/update-dep #256
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: Release Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install project dependencies | |
run: | | |
bun install | |
# Undo changes to the lockfile that might block release | |
# when this project is more mature use "bun install --frozen-lockfile" | |
git checkout -- bun.lockb | |
- name: Build project | |
run: bun run build | |
- name: Run pver release | |
run: npx pver release --npm | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |