File tree 2 files changed +65
-0
lines changed 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Setup Environment'
2
+ description : ' Setup Node.js, pnpm, and install dependencies'
3
+
4
+ inputs :
5
+ node-version :
6
+ description : ' Node.js version to use'
7
+ required : true
8
+ default : ' 22'
9
+ install-command :
10
+ description : ' Command to install dependencies'
11
+ required : false
12
+ default : ' pnpm install --frozen-lockfile'
13
+
14
+ runs :
15
+ using : " composite"
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Install pnpm
21
+ uses : pnpm/action-setup@v4
22
+
23
+ - name : Use Node.js ${{ inputs.node-version }}
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : ${{ inputs.node-version }}
27
+ cache : ' pnpm'
28
+
29
+ - name : Install dependencies
30
+ shell : bash
31
+ run : ${{ inputs.install-command }}
Original file line number Diff line number Diff line change
1
+ # Run `pnpm changeset` before running this workflow
2
+ name : Release Extension.js
3
+
4
+ permissions :
5
+ contents : write
6
+ packages : write
7
+ pull-requests : write
8
+
9
+ on :
10
+ push :
11
+ branches :
12
+ - main
13
+
14
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
15
+
16
+ jobs :
17
+ release :
18
+ name : Release
19
+ runs-on : ubuntu-24.04
20
+ steps :
21
+ - uses : ./.github/actions/setup
22
+ with :
23
+ node-version : ' 22'
24
+
25
+ - name : Publish packages to npm
26
+ id : changesets
27
+ uses : changesets/action@v1
28
+ with :
29
+ publish : pnpm release
30
+ commit : " chore: version packages"
31
+ title : " chore: version packages"
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments