Skip to content

Commit e3b739d

Browse files
committed
fix: release process
1 parent 9888f54 commit e3b739d

3 files changed

Lines changed: 11 additions & 29 deletions

File tree

.github/workflows/cd.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
types:
77
- completed
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
publish:
@@ -27,21 +27,17 @@ jobs:
2727
- name: Setup Node.js
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: "20"
30+
node-version: "24"
3131
cache: "npm"
32-
registry-url: https://registry.npmjs.org
33-
cache-dependency-path: package-lock.json
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3632

3733
- name: Install dependencies
38-
run: npm install
34+
run: npm ci
3935

4036
- name: Build the project
4137
run: npm run build
4238

4339
- name: Release
4440
env:
4541
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
run: npx semantic-release
42+
NPM_CONFIG_PROVENANCE: true
43+
run: npx semantic-release

.github/workflows/ci.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: CI Pipeline
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
build:
@@ -19,23 +19,11 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: "20"
22+
node-version: "24"
2323
cache: "npm"
24-
registry-url: https://registry.npmjs.org
25-
cache-dependency-path: package-lock.json
26-
27-
- name: Retrieve dependencies
28-
id: "modules_cache"
29-
uses: actions/cache@v4
30-
with:
31-
path: node_modules
32-
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
33-
restore-keys: |
34-
node-modules-${{ runner.os }}-
3524

3625
- name: Install dependencies
37-
if: steps.modules_cache.outputs.cache-hit != 'true'
38-
run: npm install
26+
run: npm ci
3927

4028
- name: Run typescript
4129
run: npm run tsc
@@ -47,4 +35,4 @@ jobs:
4735
run: npm run test
4836

4937
- name: Build the project
50-
run: npm run build
38+
run: npm run build

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
},
2929
"readme": "./README.md",
3030
"release": {
31-
"branches": [
32-
"master"
33-
],
31+
"branches": ["main"],
3432
"verifyConditions": [
3533
"@semantic-release/github",
3634
"@semantic-release/npm"

0 commit comments

Comments
 (0)