Skip to content

name change

name change #13

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
id-token: write
pull-requests: write
concurrency:
group: release-main
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.6
- name: Setup Node.js for npm trusted publishing fallback
uses: actions/setup-node@v4
with:
node-version: 22.14.0
registry-url: https://registry.npmjs.org
- name: Upgrade npm for trusted publishing compatibility
run: npm install --global npm@^11.5.1
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run lint
run: bun run lint
- name: Run typecheck
run: bun run typecheck
- name: Build package
run: bun run build
- name: Run tests with JUnit output
run: bun run test:ci
- name: Upload JUnit report
if: always()
uses: actions/upload-artifact@v4
with:
name: packages-core-junit-release
path: packages/core/reports/junit.xml
if-no-files-found: error
- name: Create version PR or publish to npm
uses: changesets/action@v1
with:
title: "chore(release): version packages"
commit: "chore(release): version packages"
version: bun run version-packages
publish: bun run release:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
FORCE_NPM_TOKEN_PUBLISH: "1"