Skip to content

Commit 93e1b48

Browse files
committed
feat: setup release workflow
1 parent f2510d1 commit 93e1b48

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"access": "restricted",
6+
"baseBranch": "main",
7+
"updateInternalDependencies": "patch"
8+
}

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
NODE_VERSION: '22.19'
10+
PNPM_VERSION: '10.20.0'
11+
12+
jobs:
13+
release:
14+
name: Release with changesets
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js and pnpm
23+
uses: ./.github/actions/setup-node-pnpm
24+
with:
25+
node-version: ${{ env.NODE_VERSION }}
26+
pnpm-version: ${{ env.PNPM_VERSION }}
27+
28+
- name: Create Release PR or Publish
29+
uses: changesets/action@v1
30+
with:
31+
title: 'ci: version packages'
32+
commit: 'ci: version packages'
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)