File tree Expand file tree Collapse file tree 8 files changed +8913
-1690
lines changed Expand file tree Collapse file tree 8 files changed +8913
-1690
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ - next
7
+ - beta
8
+ - alpha
9
+ pull_request :
10
+
11
+ permissions :
12
+ contents : read # for checkout
13
+
14
+ jobs :
15
+ commitlint :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : 0
21
+ - name : Set up Node.js
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : ' 22.x'
25
+ - name : Install dependencies
26
+ run : npm ci
27
+ - name : Commitlint check
28
+ uses : wagoid/commitlint-github-action@v5
29
+ release :
30
+ name : Release
31
+ runs-on : ubuntu-latest
32
+ permissions :
33
+ contents : write # to be able to publish a GitHub release
34
+ issues : write # to be able to comment on released issues
35
+ pull-requests : write # to be able to comment on released pull requests
36
+ id-token : write # to enable use of OIDC for npm provenance
37
+ steps :
38
+ - name : Checkout code
39
+ uses : actions/checkout@v4
40
+ with :
41
+ fetch-depth : 0
42
+ # Note: Automatically populated GITHUB_TOKEN cannot be used if branch protection is enabled
43
+ # for the target branch. If the risk is acceptable, some extra configuration is needed. The
44
+ # actions/checkout persist-credentials option needs to be false, otherwise the generated
45
+ # GITHUB_TOKEN will interfere with the custom one.
46
+ # ref: https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md#pushing-packagejson-changes-to-your-repository
47
+ persist-credentials : false
48
+ - name : Set up Node.js
49
+ uses : actions/setup-node@v4
50
+ with :
51
+ node-version : ' 22.x'
52
+ registry-url : ' https://npm.pkg.github.com'
53
+ scope : ' @mitre-attack'
54
+ - name : Install
55
+ run : npm clean-install
56
+ - name : Build
57
+ run : npm run build
58
+ - name : Test
59
+ run : npm run test
60
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
61
+ run : npm audit signatures
62
+ - name : Release
63
+ run : npx semantic-release
64
+ env :
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ npx --no-install commitlint --edit
Original file line number Diff line number Diff line change 1
- npm run format
1
+ npm test
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": [
3
+ "main",
4
+ {
5
+ "name": "next",
6
+ "prerelease": true
7
+ },
8
+ {
9
+ "name": "beta",
10
+ "prerelease": true
11
+ },
12
+ {
13
+ "name": "alpha",
14
+ "prerelease": true
15
+ }
16
+ ],
17
+ "plugins": [
18
+ "@semantic-release/commit-analyzer",
19
+ "@semantic-release/release-notes-generator",
20
+ "@semantic-release/npm",
21
+ "@semantic-release/github",
22
+ [
23
+ "@semantic-release/git",
24
+ {
25
+ "assets": [
26
+ "dist/**",
27
+ "docs",
28
+ "README.md",
29
+ "package.json"
30
+ ],
31
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
32
+ }
33
+ ]
34
+ ]
35
+ }
You can’t perform that action at this time.
0 commit comments