Skip to content

Commit 738be3d

Browse files
committed
chore: Update release workflow and package.json scripts
1 parent 1899845 commit 738be3d

File tree

2 files changed

+11
-27
lines changed

2 files changed

+11
-27
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
99
steps:
10-
- uses: actions/checkout@v2
11-
12-
- name: Prepare repository
13-
run: git fetch --unshallow --tags
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
1413

15-
- name: Use Node.js 18.x
14+
- name: Use Node.js 20.x
1615
uses: actions/setup-node@v3
1716
with:
18-
node-version: 18.x
17+
node-version: 20.x
1918

20-
- uses: pnpm/action-setup@v2
21-
name: Install pnpm
19+
- uses: pnpm/action-setup@v4
2220
with:
23-
version: 8
24-
run_install: false
21+
version: 10
2522

26-
- name: Get pnpm store directory
27-
shell: bash
23+
- name: Build
2824
run: |
29-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30-
31-
- uses: actions/cache@v3
32-
name: Setup pnpm cache
33-
with:
34-
path: ${{ env.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
38-
39-
- name: Install dependencies
40-
run: pnpm install
25+
pnpm build
4126
42-
- name: Create Release
27+
- name: Release
4328
env:
4429
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4530
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
"scripts": {
4646
"build": "tsup",
4747
"build:watch": "pnpm build --watch",
48-
"clean": "rimraf dist && rimraf bin",
49-
"release": "pnpm build && auto shipit"
48+
"release": "auto shipit"
5049
},
5150
"devDependencies": {
5251
"@types/node": "^22.15.29",

0 commit comments

Comments
 (0)