Skip to content

ci: update auto-release workflow #2

ci: update auto-release workflow

ci: update auto-release workflow #2

Workflow file for this run

name: Release Packages
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HUSKY: 0
BUN_VERSION: latest
NODE_VERSION: 24
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # for `npm publish`
NPM_REGISTRY_URL: https://registry.npmjs.org/
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: oven-sh/setup-bun@ecf28ddc73e819eb6fa29df6b34ef8921c743461 # v2.1.3
with:
bun-version: ${{ env.BUN_VERSION }}
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: ${{ env.NPM_REGISTRY_URL }}
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun run type-check
- run: bun run lint:ci
- run: bun run test:ci
- uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
version: bun run version
publish: bun run release
commit: 'chore: release new version'
title: 'New Package Release'