1- # This is a Github Workflow that runs tests on any push or pull request.
21name : CI
3- on : [push, pull_request]
2+ on : [ push, pull_request ]
43jobs :
54 test :
5+ name : Test
66 runs-on : ubuntu-latest
77 steps :
88 - name : Checkout
99 uses : actions/checkout@v4
1010
11- - name : Setup NodeJS
11+ - name : Setup
1212 uses : actions/setup-node@v4
13- with :
14- node-version : 16
1513
16- - name : Install deps
14+ - name : Install
1715 run : yarn
1816
17+ - name : Install
18+ run : npx packasso install
19+
1920 - name : Test
20- run : yarn test
21+ run : npx packasso test
2122
22- release_radar :
23- name : Publish radar to gh-pages
24- # https://github.community/t/trigger-job-on-tag-push-only/18076
23+ publish :
24+ name : Publish
2525 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
2626 runs-on : ubuntu-latest
2727 needs : test
2828 steps :
29- - name : Checkuout
29+ - name : Checkout
3030 uses : actions/checkout@v4
3131
32- - name : Setup NodeJS
32+ - name : Setup
3333 uses : actions/setup-node@v4
34- with :
35- node-version : 16
3634
37- - name : Install deps
35+ - name : Install
3836 run : yarn
3937
40- - name : Generate
41- run : |
42- yarn generate
43- yarn docs
38+ - name : Install
39+ run : npx packasso install
40+
41+ - name : Build
42+ run : yarn build
4443
45- - name : Publish gh-pages
44+ - name : Publish
4645 uses : peaceiris/actions-gh-pages@v3
4746 with :
4847 github_token : ${{ secrets.GITHUB_TOKEN }}
49- publish_dir : ./dist
48+ publish_dir : ./target/radar
5049 commit_message : " docs: update tech-radar static"
5150 allow_empty_commit : true
5251 enable_jekyll : false
5352
54- release_lib :
55- name : Release lib
56- # https://github.community/t/trigger-job-on-tag-push-only/18076
53+ release :
54+ name : Release
5755 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
5856 needs : test
5957 runs-on : ubuntu-latest
@@ -64,28 +62,33 @@ jobs:
6462 persist-credentials : false
6563 fetch-depth : 0
6664
67- - uses : actions/setup-node@v4
68- with :
69- node-version : 16
65+ - name : Setup
66+ uses : actions/setup-node@v4
7067
71- - name : Install deps
68+ - name : Install
7269 run : yarn
7370
71+ - name : Install
72+ run : npx packasso install
73+
74+ - name : Build
75+ run : npx packasso build
76+
7477 - name : Test
75- run : yarn test:unit
78+ run : npx packasso test
7679
77- - name : Codeclimate
80+ - name : Code Climate
78817982 env :
8083 CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
8184 with :
8285 coverageLocations : |
83- ${{ github.workspace }}/coverage/lcov.info:lcov
86+ ${{ github.workspace }}/target/ coverage/lcov.info:lcov
8487
8588 - name : Release
8689 env :
8790 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
8891 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
8992 GIT_COMMITTER_EMAIL : ${{ secrets.GIT_COMMITTER_EMAIL }}
9093 GIT_COMMITTER_NAME : ${{ secrets.GIT_COMMITTER_NAME }}
91- run : npm_config_yes=true npx zx-semrel
94+ run : npx packasso release
0 commit comments