Skip to content

Commit 0485f01

Browse files
committed
chore: add workflow for changesets
1 parent 3b28f6e commit 0485f01

File tree

4 files changed

+1489
-106
lines changed

4 files changed

+1489
-106
lines changed

.github/workflows/changesets.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
env:
11+
NODE_VERSION: 18
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ env.NODE_VERSION }}
25+
cache: 'yarn'
26+
27+
- name: Install dependencies
28+
run: yarn install --immutable
29+
30+
- name: Run Changesets
31+
id: changesets
32+
uses: changesets/action@v1
33+
with:
34+
publish: yarn release
35+
title: Packages ready to publish
36+
commit: Publish new versions
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/release-please.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test:dev": "vitest",
1414
"g:tsc": "cd $INIT_CWD && rimraf dist/ && tsc",
1515
"website:build": "yarn workspace website run build",
16-
"website:start": "yarn workspace website run start"
16+
"website:start": "yarn workspace website run start",
17+
"release": "yarn build && changeset publish"
1718
},
1819
"license": "MIT",
1920
"workspaces": [
@@ -22,6 +23,7 @@
2223
"website"
2324
],
2425
"devDependencies": {
26+
"@changesets/cli": "2.25.2",
2527
"@types/cross-spawn": "6.0.2",
2628
"@types/node": "14.18.32",
2729
"@types/rimraf": "3.0.2",

0 commit comments

Comments
 (0)