Skip to content

chore: bump version to 0.7.0 #14

chore: bump version to 0.7.0

chore: bump version to 0.7.0 #14

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: Read Bun version from package.json
id: bun-version
run: echo "version=$(jq -r '.engines.bun' package.json)" >> $GITHUB_OUTPUT
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ steps.bun-version.outputs.version }}
- 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}