Skip to content

Commit 793d556

Browse files
committed
feat: setup release workflow
1 parent f2510d1 commit 793d556

3 files changed

Lines changed: 53 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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 standard-version
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: Run release
29+
run: |
30+
git config user.name "github-actions[bot]"
31+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
32+
pnpx standard-version
33+
34+
- name: Push changes and tags
35+
run: |
36+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
37+
git push origin main --follow-tags --force-with-lease

0 commit comments

Comments
 (0)