Skip to content

fix(ci): run tests with single-worker concurrency #4

fix(ci): run tests with single-worker concurrency

fix(ci): run tests with single-worker concurrency #4

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
workflow_dispatch:
inputs:
dry_run:
description: "Run semantic-release in dry-run mode"
required: false
default: false
type: boolean
permissions:
contents: write
id-token: write
concurrency:
group: semantic-release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
environment: npm
steps:
- name: Checkout
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
uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Test
run: bun test --max-concurrency=1
- name: Semantic release
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.dry_run }}" = "true" ]; then
bunx semantic-release --dry-run
else
bunx semantic-release
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}