File tree 3 files changed +20
-2043
lines changed 3 files changed +20
-2043
lines changed Original file line number Diff line number Diff line change @@ -28,33 +28,18 @@ jobs:
28
28
with :
29
29
persist-credentials : false
30
30
31
- # Setup Node
32
- - name : 📦 Setup Node.js
33
- uses : actions/setup-node@v4
34
- with :
35
- node-version : " lts/*"
36
-
37
31
# Install pnpm
38
32
- name : 📦 Install pnpm
39
- uses : pnpm/action-setup@v3
33
+ uses : pnpm/action-setup@v4
40
34
with :
41
- version : 9
42
- run_install : false
35
+ version : 10
43
36
44
- # Get pnpm store directory
45
- - name : 📦 Get pnpm store directory
46
- shell : bash
47
- run : |
48
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
49
-
50
- # Setup pnpm cache
51
- - name : 📦 Setup pnpm cache
52
- uses : actions/cache@v4
37
+ # Setup Node
38
+ - name : 📦 Setup Node.js
39
+ uses : actions/setup-node@v4
53
40
with :
54
- path : ${{ env.STORE_PATH }}
55
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
56
- restore-keys : |
57
- ${{ runner.os }}-pnpm-store-
41
+ node-version : " lts/*"
42
+ cache : " pnpm"
58
43
59
44
# Install dependencies
60
45
- name : 📦 Install dependencies
63
48
64
49
# Create semantic release
65
50
- name : 🚀 Create semantic release
51
+ uses : cycjimmy/semantic-release-action@v4
52
+ with :
53
+ semantic_version : 24
54
+ extra_plugins : |
55
+ - "@semantic-release/changelog"
56
+ - "@semantic-release/git"
57
+ - "@semantic-release/exec"
66
58
env :
67
59
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
68
- run : pnpm run semantic-release
Original file line number Diff line number Diff line change 9
9
"update-blog-list" : " node ./scripts/update-blog-list.js" ,
10
10
"preview" : " astro preview" ,
11
11
"astro" : " astro" ,
12
- "prettier" : " prettier --write ./src --plugin=prettier-plugin-astro " ,
12
+ "prettier" : " prettier --write ./src --cache " ,
13
13
"semantic-release" : " semantic-release" ,
14
14
"upgrade" : " pnpm dlx @astrojs/upgrade && pnpm up -i"
15
15
},
33
33
"astro-seo" : " ^0.8.4" ,
34
34
"hast" : " ^1.0.0" ,
35
35
"mdast-util-to-string" : " ^4.0.0" ,
36
- "prettier-plugin-organize-imports" : " ^4.1.0" ,
37
36
"reading-time" : " ^1.5.0" ,
38
37
"satori" : " ^0.12.1" ,
39
38
"sharp" : " ^0.33.5" ,
43
42
"unist-util-visit" : " ^5.0.0"
44
43
},
45
44
"devDependencies" : {
46
- "@semantic-release/changelog" : " ^6.0.3" ,
47
- "@semantic-release/exec" : " ^7.0.3" ,
48
- "@semantic-release/git" : " ^10.0.1" ,
49
45
"@types/hast" : " ^3.0.4" ,
50
46
"astro-meta-tags" : " ^0.3.1" ,
51
47
"prettier" : " ^3.4.2" ,
52
48
"prettier-plugin-astro" : " ^0.14.1" ,
53
- "semantic-release " : " ^24.2.1 "
49
+ "prettier-plugin-organize-imports " : " ^4.1.0 "
54
50
}
55
51
}
You can’t perform that action at this time.
0 commit comments