Skip to content

Commit 38c3ece

Browse files
committed
fix(ci)!: update release workflow
1 parent e78d1c4 commit 38c3ece

3 files changed

Lines changed: 11 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
# Checkout project repository
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

@@ -28,34 +28,17 @@ jobs:
2828
2929
# Setup Node.js environment
3030
- name: Setup Node.js
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
registry-url: https://registry.npmjs.org/
34-
node-version: lts/*
34+
node-version: latest
3535

3636
# Install pnpm
37-
- uses: pnpm/action-setup@v2
37+
- uses: pnpm/action-setup@v4
3838
name: Install pnpm
3939
id: pnpm-install
4040
with:
41-
version: 8
42-
run_install: false
43-
44-
# Setup pnpm store
45-
- name: Get pnpm store directory
46-
id: pnpm-cache
47-
shell: bash
48-
run: |
49-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
50-
51-
# Use cache to reduce installation time
52-
- uses: actions/cache@v3
53-
name: Setup pnpm cache
54-
with:
55-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
56-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
57-
restore-keys: |
58-
${{ runner.os }}-pnpm-store-
41+
version: 10
5942

6043
# Install dependencies
6144
- name: Install dependencies
@@ -75,4 +58,5 @@ jobs:
7558
- name: Release
7659
run: pnpx release-it --ci
7760
env:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ coverage
1212
.DS_Store
1313
.eslintcache
1414
*.env*
15+
16+
.npmrc

.release-it.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"comments": true
1414
},
1515
"npm": {
16-
"publish": true,
17-
"skipChecks": true
16+
"publish": true
1817
},
1918
"hooks": {
2019
"before:init": "git fetch --tags"
@@ -31,4 +30,4 @@
3130
}
3231
}
3332
}
34-
}
33+
}

0 commit comments

Comments
 (0)