Skip to content

fix(fast-types): internalize procRequestSchema, explicit ProcRequest … #5

fix(fast-types): internalize procRequestSchema, explicit ProcRequest …

fix(fast-types): internalize procRequestSchema, explicit ProcRequest … #5

Workflow file for this run

name: publish-jsr
# Tokenless OIDC publish to JSR on a v* release tag. Idempotent: if the version
# in jsr.json is already on JSR, it skips (so back-tagging an already-published
# version is a green no-op, not a failed re-publish).
on:
workflow_dispatch:
push:
tags: ["v*"]
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with: { egress-policy: audit }
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with: { bun-version: 1.3.14 }
- run: bun install --frozen-lockfile
- name: Publish to JSR (skip if version already published)
run: |
pkg=$(grep "\"name\"" jsr.json | head -1 | sed "s/.*\"name\"[: ]*\"//;s/\".*//")
ver=$(grep "\"version\"" jsr.json | head -1 | sed "s/.*\"version\"[: ]*\"//;s/\".*//")
if curl -sfL "https://jsr.io/${pkg}/${ver}_meta.json" >/dev/null 2>&1; then
echo "::notice::${pkg}@${ver} already on JSR — skipping publish"
else
bunx jsr publish --allow-slow-types
fi