File tree Expand file tree Collapse file tree 2 files changed +43
-66
lines changed Expand file tree Collapse file tree 2 files changed +43
-66
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release SDK with Changesets
2
+ on :
3
+ push :
4
+ branches : ["main"]
5
+ paths :
6
+ - " sdk/**"
7
+ - " .changeset/**"
8
+ workflow_dispatch :
9
+
10
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
11
+
12
+ jobs :
13
+ release :
14
+ name : Release
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout Repo
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Setup Node.js 20.x
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : 20.x
24
+
25
+ - name : Setup pnpm
26
+ uses : pnpm/action-setup@v3
27
+ with :
28
+ version : latest
29
+
30
+ - name : Install Dependencies
31
+ run : pnpm install
32
+
33
+ - name : Build SDK
34
+ run : pnpm --filter=so-teams-sdk build
35
+
36
+ - name : Create Release Pull Request or Publish to npm
37
+ id : changesets
38
+ uses : changesets/action@v1
39
+ with :
40
+ publish : npx changeset publish
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments