Skip to content

docs: the Rhino to Revit path, written from a run that worked #89

docs: the Rhino to Revit path, written from a run that worked

docs: the Rhino to Revit path, written from a run that worked #89

Workflow file for this run

name: Release
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Version & Publish
runs-on: ubuntu-latest
permissions:
contents: write # push the version-bump commit
id-token: write # OIDC trusted publishing to npm (no token secret)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org
# Ensure npm supports OIDC trusted publishing (>= 11.5.1).
- run: npm install -g npm@11.5.1
- run: yarn install --frozen-lockfile
- name: Check for changesets
id: changesets
run: |
COUNT=$(find .changeset -name '*.md' ! -name 'README.md' | wc -l | tr -d ' ')
echo "count=$COUNT" >> "$GITHUB_OUTPUT"
if [ "$COUNT" != "0" ]; then
echo "Found $COUNT changeset(s) — will version and publish."
else
echo "No changesets found — skipping."
fi
# Consume changesets: bump version, write CHANGELOG, remove changeset files.
- name: Version packages
if: steps.changesets.outputs.count != '0'
run: |
yarn changeset version
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: version packages [skip ci]"
git push
# Publish with the bumped version. No NODE_AUTH_TOKEN: npm exchanges the
# OIDC id-token for a short-lived credential. Requires a trusted publisher
# configured for this package on npmjs.com (repo + workflow file name).
- name: Build & Publish
if: steps.changesets.outputs.count != '0'
run: |
yarn build
yarn changeset publish