File tree 2 files changed +25
-21
lines changed
2 files changed +25
-21
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
- on : [workflow_dispatch]
3
+ on : [ workflow_dispatch ]
4
4
5
5
concurrency : ${{ github.workflow }}-${{ github.ref }}
6
6
7
+ env :
8
+ CI : true
9
+ PNPM_CACHE_FOLDER : .pnpm-store
10
+
7
11
jobs :
8
- release :
9
- name : Release
12
+ version :
13
+ timeout-minutes : 15
10
14
runs-on : ubuntu-latest
11
15
steps :
12
- - name : Checkout Repo
13
- uses : actions/checkout@v2
16
+ - name : checkout code repository
17
+ uses : actions/checkout@v3
14
18
with :
15
19
fetch-depth : 0
16
-
17
- - uses : pnpm/action- setup@v2.2.2
20
+ - name : setup node.js
21
+ uses : actions/ setup-node@v3
18
22
with :
19
- version : 7
20
-
21
- - name : Use Node.js ${{ matrix.node-version }}
22
- uses : actions/setup-node@v2
23
- with :
24
- node-version : ${{ matrix.node-version }}
25
- cache : ' pnpm'
26
- - name : Install dependencies
23
+ node- version : 14
24
+ - name : install pnpm
25
+ run : npm i pnpm@latest -g
26
+ - name : Setup npmrc
27
+ run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
28
+ - name : setup pnpm config
29
+ run : pnpm config set store-dir $PNPM_CACHE_FOLDER
30
+ - name : install dependencies
27
31
run : pnpm install
28
-
29
- - name : Publish to npm
30
- id : changesets
32
+ - name : create and publish versions
31
33
uses : changesets/action@v1
32
34
with :
33
- publish : pnpm ci:release
35
+ version : pnpm ci:version
36
+ publish : pnpm ci:publish
34
37
env :
35
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 32
32
"changeset" : " changeset" ,
33
33
"version-packages" : " changeset version && pnpm i" ,
34
34
"build-test" : " pnpm build && pnpm test && pnpm typecheck --filter=!./playgrounds/*" ,
35
- "release" : " pnpm run build-test && changeset publish"
35
+ "release" : " changeset publish" ,
36
+ "ci:publish" : " changeset publish" ,
37
+ "ci:version" : " changeset version"
36
38
},
37
39
"keywords" : [
38
40
" solidjs" ,
You can’t perform that action at this time.
0 commit comments