This repository was archived by the owner on Sep 30, 2023. It is now read-only.
File tree 4 files changed +30
-20
lines changed
4 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 17
17
- uses : actions/checkout@v2
18
18
19
19
# nodejs
20
- - uses : actions/setup-node@v2
21
- with :
22
- node-version : ' 16.x'
23
- registry-url : ' https://npm.pkg.github.com'
24
20
- name : Cache pnpm modules
25
21
uses : actions/cache@v2
26
22
with :
31
27
32
28
with :
33
29
version : 6.14.5
34
- run_install : |
35
- - recursive: true
36
- args: [--frozen-lockfile false]
30
+ run_install : true
37
31
38
32
# rust
39
33
- uses : Swatinem/rust-cache@v1
79
73
GITHUB_TOKEN : ${{ secrets.github_token }}
80
74
81
75
# release
82
- - name : Release rust_bakcend
76
+ - name : Release npm pkg
77
+ uses : actions/setup-node@v2
78
+ with :
79
+ node-version : ' 16.x'
80
+ registry-url : ' https://registry.npmjs.org'
81
+ - run : pnpm ci:publish
83
82
env :
84
83
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
86
- run : |
87
- pnpm ci:publish
84
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ workspace-concurrency = Infinity
2
+ # Remove when https://github.com/renovatebot/renovate/issues/8323 is fixed
3
+ frozen-lockfile = false
4
+ stream = true
5
+ prefer-workspace-packages = true
Original file line number Diff line number Diff line change 1
- prefer-workspace-packages : true
2
1
packages :
3
- # all packages in subdirs of packages/ and components/
4
- - ' packages/**'
5
-
2
+ # all packages in subdirs of packages/ and components/
3
+ - ' packages/**'
Original file line number Diff line number Diff line change @@ -3,16 +3,26 @@ import { cd } from 'zx'
3
3
4
4
// publish rust-backend
5
5
cd ( 'packages/rust-backend' )
6
- await $ `pnpm publish-platform`
7
- cd ( '../../' )
6
+ try {
7
+ await $ `pnpm publish-platform`
8
+ } catch ( error ) {
9
+ console . error ( error )
10
+ } finally {
11
+ cd ( '../../' )
12
+ }
8
13
9
14
// publish rubickbase
10
15
if ( process . platform === 'linux' ) {
11
16
// build
12
17
await $ `pnpm build`
13
18
14
19
cd ( 'packages/rubickbase' )
15
- await $ `pnpx ncu -u`
16
- await $ `pnpm publish --access public --no-git-checks`
17
- cd ( '../../' )
20
+ try {
21
+ await $ `pnpx ncu -u`
22
+ await $ `pnpm publish --access public --no-git-checks`
23
+ } catch ( error ) {
24
+ console . error ( error )
25
+ } finally {
26
+ cd ( '../../' )
27
+ }
18
28
}
You can’t perform that action at this time.
0 commit comments