Skip to content

chore: bump version to 0.6.1 #16

chore: bump version to 0.6.1

chore: bump version to 0.6.1 #16

Workflow file for this run

name: publish
on:
workflow_dispatch:
inputs:
tag:
description: "npm dist-tag (default: latest)"
required: false
type: string
dry_run:
description: "Dry run (no publish)"
required: false
default: false
type: boolean
push:
tags:
- 'v*'
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
packages: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.3.0
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Publish packages
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }}
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run || '' }}
run: |
TAG=${NPM_TAG:-latest}
CMD="bun scripts/publish.ts --tag ${TAG}"
if [ "${DRY_RUN}" = "true" ]; then
CMD="${CMD} --dry-run"
fi
echo "Running: ${CMD}"
${CMD}