Skip to content

Commit 9c02129

Browse files
committed
fix: 💚 Remove npm release from the action release
1 parent bd43932 commit 9c02129

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
- staging
7-
- production
8-
9-
pull_request:
10-
branches:
11-
- main
12-
136
permissions:
147
contents: read # for checkout
158

@@ -29,6 +22,12 @@ jobs:
2922
matrix:
3023
node-version: [20.x]
3124
steps:
25+
- name: 'Generate token'
26+
id: generate_token
27+
uses: tibdex/github-app-token@v1
28+
with:
29+
app_id: ${{ secrets.RELEASE_APP_ID }}
30+
private_key: ${{ secrets.RELEASE_APP_SECRET }}
3231
- name: Cache node modules
3332
id: cache-npm
3433
uses: actions/cache@v4
@@ -46,11 +45,14 @@ jobs:
4645
with:
4746
node-version: ${{ matrix.node-version }}
4847
- uses: actions/checkout@v4
48+
with:
49+
token: ${{ steps.generate_token.outputs.token }}
50+
4951
- run: npm run setup
5052
- run: npm run ci
5153
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
5254
run: npm audit signatures
5355
- name: Release
5456
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
5658
run: npx semantic-release

.releaserc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"plugins": [
1313
"@semantic-release/commit-analyzer",
1414
"@semantic-release/release-notes-generator",
15-
"@semantic-release/npm",
1615
"@semantic-release/git",
1716
"@semantic-release/github"
1817
]

commitlint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
},
88
rules: {
99
'subject-case': [2, 'always', ['lower-case']],
10-
'scope-enum': [1, 'always', ['wip', 'configs', 'formatting', 'code', 'deployment', 'tests']],
10+
'scope-enum': [1, 'always', ['wip', 'configs', 'formatting', 'code', 'ci' ,'deployment', 'tests']],
11+
'body-max-line-length': [1, 'always', 100],
1112
},
1213
};

0 commit comments

Comments
 (0)