File tree Expand file tree Collapse file tree 7 files changed +9022
-1130
lines changed
Expand file tree Collapse file tree 7 files changed +9022
-1130
lines changed Original file line number Diff line number Diff line change 1+ name : " Checks"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : ' 16'
17+ - name : Install dependencies
18+ working-directory : ./
19+ run : npm ci
20+ - name : Run build
21+ run : npm run build
Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+ schedule :
11+ - cron : " 0 8 * * 6"
12+
13+ jobs :
14+ analyze :
15+ name : Analyze
16+ runs-on : ubuntu-latest
17+ permissions :
18+ actions : read
19+ contents : read
20+ security-events : write
21+
22+ strategy :
23+ fail-fast : false
24+ matrix :
25+ language : [ javascript ]
26+
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+
31+ - name : Initialize CodeQL
32+ uses : github/codeql-action/init@v3
33+ with :
34+ languages : ${{ matrix.language }}
35+ queries : +security-and-quality
36+
37+ - name : Autobuild
38+ uses : github/codeql-action/autobuild@v3
39+
40+ - name : Perform CodeQL Analysis
41+ uses : github/codeql-action/analyze@v3
42+ with :
43+ category : " /language:${{ matrix.language }}"
Original file line number Diff line number Diff line change 1+ name : " Release and Publish Manual"
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ build :
7+ name : " Build"
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : " Checkout"
11+ uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+
15+ - name : " Use Node.js 16"
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 16'
19+
20+ - name : " Install dependencies"
21+ working-directory : ./
22+ run : npm ci
23+
24+ - name : " Run build"
25+ run : lerna run build
26+
27+ - name : " Version and publish 🚀"
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
31+ run : |
32+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
33+ git config --global user.name "github-actions[bot]"
34+
35+ if [ ${{ github.base_ref }} = develop ]; then
36+ npx lerna version --conventional-commits --conventional-prerelease --preid alpha --yes
37+ else
38+ npx lerna version --conventional-commits --conventional-graduate --yes
39+ fi
40+
41+ npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
42+ npx lerna publish from-git --yes
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " node_modules/lerna/schemas/lerna-schema.json" ,
3+ "version" : " independent" ,
4+ "command" : {
5+ "version" : {
6+ "createRelease" : " github" ,
7+ "conventionalCommits" : true ,
8+ "allowBranch" : [
9+ " main" ,
10+ " develop"
11+ ],
12+ "message" : " chore(release): publish"
13+ }
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ {
2+ "targetDefaults" : {
3+ "dev" : {
4+ "cache" : true ,
5+ "dependsOn" : [
6+ " ^dev"
7+ ]
8+ },
9+ "build" : {
10+ "cache" : true ,
11+ "dependsOn" : [
12+ " ^build"
13+ ]
14+ },
15+ "preview" : {
16+ "dependsOn" : []
17+ },
18+ "test" : {
19+ "cache" : true ,
20+ "dependsOn" : [
21+ " ^test"
22+ ]
23+ }
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments