File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,21 @@ jobs:
23
23
git config user.name github-actions[bot]
24
24
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
25
25
26
- - name : Setup Node
26
+ # Install pnpm based on `packageManager` in package.json
27
+ - name : Install pnpm
28
+ uses : pnpm/action-setup@v4
29
+ with :
30
+ run_install : false
31
+
32
+ # Install Node.js
33
+ - name : Install Node
27
34
uses : actions/setup-node@v4
28
35
with :
29
36
node-version : " 20"
30
37
registry-url : " https://registry.npmjs.org"
31
38
32
39
- name : Bundle JSON Schemas
33
- run : npm install && npm run release
40
+ run : pnpm install && pnpm run release
34
41
35
42
- name : Github Release
36
43
uses : softprops/action-gh-release@v2
47
54
env :
48
55
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
49
56
50
- - name : Commit and Push
57
+ - name : Commit Changes
51
58
run : |
52
- git commit --allow-empty -am 'Release On Tag '
59
+ git commit --allow-empty -am 'ci: release ${{ github.ref_name }} '
53
60
git push origin HEAD:main
Original file line number Diff line number Diff line change 20
20
},
21
21
"license" : " MIT" ,
22
22
"repository" : {
23
- "type" : " git" ,
24
- "url" : " https://github.com/dongchengjie/meta-json-schema"
23
+ "url" : " git+https://github.com/dongchengjie/meta-json-schema.git"
25
24
},
26
25
"scripts" : {
27
26
"preinstall" : " npx only-allow pnpm" ,
You can’t perform that action at this time.
0 commit comments