File tree Expand file tree Collapse file tree 6 files changed +34939
-24903
lines changed Expand file tree Collapse file tree 6 files changed +34939
-24903
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : release
2
2
3
+ name : build
4
+
3
5
on :
4
- release :
5
- types : [created]
6
+ push :
7
+ branches :
8
+ - main
9
+ - beta
6
10
7
11
jobs :
8
- release :
9
- name : Build and publish
12
+ build :
13
+ name : Full CI
10
14
runs-on : ubuntu-latest
11
15
12
16
steps :
13
17
- name : Checkout repo
14
18
uses : actions/checkout@v2
19
+ with :
20
+ fetch-depth : 0
15
21
16
22
- name : Set up Node
17
23
uses : actions/setup-node@v1
@@ -29,10 +35,29 @@ jobs:
29
35
if : ${{ env.ACT }}
30
36
run : npm install
31
37
32
- - name : Publish Package
33
- run : npm publish --access=public
38
+ - name : Lint
39
+ run : npm run lint
40
+
41
+ - name : Test
42
+ run : npm test -- --ci --coverage --maxWorkers=2
43
+
44
+ - name : Build
45
+ run : npm run build
46
+
47
+ - name : Build Storybook
48
+ run : npm run build-storybook -- --quiet
49
+
50
+ - name : SonarCloud Scan
51
+ uses : sonarsource/sonarcloud-github-action@master
52
+ env :
53
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
+ SONAR_TOKEN : ${{ secrets.SONAR_CLOUD_TOKEN }}
55
+
56
+ - name : Release
34
57
env :
35
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
58
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
60
+ run : npx semantic-release
36
61
37
62
- name : Publish Docs
38
63
run : npm run deploy-storybook -- --ci
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit " "
Original file line number Diff line number Diff line change 6
6
[ ![ Coverage] ( https://sonarcloud.io/api/project_badges/measure?project=commitd_components&metric=coverage&token=aa002ca75e2f3a6d028af9074bceeda1ffa2f9f7 )] ( https://sonarcloud.io/dashboard?id=commitd_components )
7
7
![ GitHub repo size] ( https://img.shields.io/github/repo-size/commitd/components )
8
8
[ ![ Storybook] ( https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.svg )] ( https://committed.software/components )
9
+ [ ![ semantic-release] ( https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg )] ( https://github.com/semantic-release/semantic-release )
9
10
10
11
For documentation see https://committed.software/components
11
12
You can’t perform that action at this time.
0 commit comments