Skip to content

v0.2.3

v0.2.3 #5

Workflow file for this run

name: Publish
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run check
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
# Trusted Publishing (OIDC) needs npm >= 11.5.1 — no token is stored.
- run: npm install -g npm@latest
# Idempotent: skip if this version is already on npm (e.g. the release tag
# matches an already-published version), so re-runs never fail red.
- name: Publish to npm
run: |
VERSION="$(node -p "require('./package.json').version")"
if npm view "beflow@${VERSION}" version >/dev/null 2>&1; then
echo "beflow@${VERSION} is already published — skipping."
else
npm publish --provenance --access public
fi