File tree 6 files changed +14884
-3958
lines changed
6 files changed +14884
-3958
lines changed Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : release-main
2
2
3
3
on :
4
4
push :
5
- branches : [main, beta ]
5
+ branches : [main]
6
6
7
7
jobs :
8
- release :
9
- name : Release
10
- runs-on : ubuntu-latest
8
+ ci :
9
+ runs-on : ${{ matrix.os }}
10
+
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest]
14
+ node : [16]
11
15
12
16
steps :
13
- - name : Checkout
14
- uses : actions/checkout@v2
15
- - name : Use Node.js ${{ matrix.node-version }}
16
- uses : actions/setup-node@v1
17
- with :
18
- node-version : 14.x
19
- - name : Install dependencies
20
- run : npx ci
21
- - name : Install semantic-release extra plugins
22
- run : npm install --save-dev @semantic-release/changelog @semantic-release/git
23
- - name : Lint
24
- run : npm run lint-fix
25
- - name : Typecheck
26
- run : npm run typecheck
27
- - name : Test
28
- run : npm run test:unit-coverage --if-present
29
- - name : Build
30
- run : npm run build
31
- - name : Release
32
- env :
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35
- run : npx semantic-release
17
+ - name : Checkout 🛎
18
+ uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 0
21
+
22
+ - name : Setup node env 🏗
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : ${{ matrix.node }}
26
+ check-latest : true
27
+
28
+ - name : Install dependencies 📦
29
+ run : npm install
30
+
31
+ - name : Install semantic-release extra plugins 📦
32
+ run : npm install --save-dev @semantic-release/changelog @semantic-release/git
33
+
34
+ - name : Run linter 👀
35
+ run : npm run lint-fix
36
+
37
+ - name : Typecheck 👀
38
+ run : npm run typecheck
39
+
40
+ - name : Run tests 🧪
41
+ run : npm run test:unit-coverage --if-present
42
+
43
+ - name : Build
44
+ run : npm run build
45
+
46
+ - name : Release
47
+ env :
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
50
+ run : npx semantic-release
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
. " $( dirname " $0 " ) /_/husky.sh"
3
3
4
- export NVM_DIR=" $HOME /.nvm/nvm.sh"
5
- . " $( dirname $NVM_DIR ) /nvm.sh"
6
-
7
- export NVM_DIR=" $HOME /.nvm"
8
- a=$( nvm ls | grep ' node' )
9
- b=${a#* (-> }
10
- v=${b%% [)| ]* }
11
-
12
- export PATH=" $NVM_DIR /versions/node/$v /bin:$PATH "
13
-
14
- npx --no-install commitlint --edit " $1 "
4
+ npx --no-install commitlint --edit $1
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
. " $( dirname " $0 " ) /_/husky.sh"
3
3
4
- export NVM_DIR=" $HOME /.nvm/nvm.sh"
5
- . " $( dirname $NVM_DIR ) /nvm.sh"
6
-
7
- export NVM_DIR=" $HOME /.nvm"
8
- a=$( nvm ls | grep ' node' )
9
- b=${a#* (-> }
10
- v=${b%% [)| ]* }
11
-
12
- export PATH=" $NVM_DIR /versions/node/$v /bin:$PATH "
13
-
14
- npx lint-staged
4
+ npx lint-staged
Original file line number Diff line number Diff line change
1
+ v16
You can’t perform that action at this time.
0 commit comments