Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/changeset-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Changeset Version

on:
push:
branches:
- master
Comment on lines +5 to +6
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Listen for pushes on main instead of master

I checked the refs in this checkout and the long-lived branch here is main (refs/heads/main exists, while refs/heads/master does not). Because this workflow only subscribes to push events on master, normal merges into the branch maintainers are using will never run changesets/action, so the release PR will only move forward if someone remembers to trigger it manually.

Useful? React with 👍 / 👎.

workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node.js
uses: actions/setup-node@v5
with:
cache: pnpm
node-version: 24

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Create or update version PR
uses: changesets/action@v1
with:
version: pnpm run version-packages
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

All notable changes to this project will be documented in this file.
Loading