Skip to content

feat: add TextArea auto-resize (#9) #11

feat: add TextArea auto-resize (#9)

feat: add TextArea auto-resize (#9) #11

Workflow file for this run

name: Release
on:
push:
branches: [main]
env:
TURBO_TELEMETRY_DISABLED: 1
jobs:
release:
name: Release
# MUST be a GitHub-hosted runner, unlike ci.yml's blacksmith-* ones. Publishing
# authenticates via npm trusted publishing (OIDC) with no NPM_TOKEN fallback, and
# Blacksmith registers as a *self-hosted* runner, so GitHub stamps its OIDC token
# `runner_environment: self-hosted` — which npm rejects ("Trusted publishing
# currently supports only cloud-hosted runners"). Releases are rare; the slower
# runner costs nothing that matters.
runs-on: ubuntu-latest
permissions:
contents: write # create the "Version Packages" PR, tags and releases
pull-requests: write # open/update the release PR
id-token: write # OIDC token for npm trusted publishing + provenance
steps:
- uses: actions/checkout@v6
# action-setup must precede setup-node so `cache: pnpm` can find the store.
# Keep action-setup current: an outdated one breaks the OIDC token exchange
# (pnpm/pnpm#11513). No `registry-url:` on setup-node — it writes an .npmrc
# pinning `_authToken=${NODE_AUTH_TOKEN}`, which is empty on the OIDC path.
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm exec turbo run build
# Opens/updates a "Version Packages" PR when changesets are present, and
# publishes to npm when that PR is merged (i.e. when no changesets remain).
- name: Create release PR or publish
uses: changesets/action@v1
with:
version: pnpm exec changeset version
publish: pnpm exec changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"