Skip to content

chore: bump rollup

chore: bump rollup #13

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Set version from tag
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "Publishing version: $VERSION"
npx changeset version --snapshot $VERSION 2>/dev/null || true
# Update all package versions to match the tag
for pkg in packages/*/package.json; do
jq --arg v "$VERSION" '.version = $v' "$pkg" > tmp.json && mv tmp.json "$pkg"
done
- name: Build all packages
run: npm run build
- name: Publish to npm
run: npx changeset publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}