File tree Expand file tree Collapse file tree 4 files changed +22
-36
lines changed Expand file tree Collapse file tree 4 files changed +22
-36
lines changed Original file line number Diff line number Diff line change 55 node_version :
66 description : Pnpm version to use
77 required : true
8+ default : 22.x
89 pnpm_version :
910 description : Node version to use
1011 required : true
1314 using : composite
1415 steps :
1516 - name : 🏗️ Setup pnpm ${{ inputs.pnpm_version }}
16- uses : pnpm/action-setup@v2
17+ uses : pnpm/action-setup@v4
1718 with :
1819 version : ${{ inputs.pnpm_version }}
1920
Original file line number Diff line number Diff line change 1- name : 🚧 Build - Build sources
1+ name : 🚧 Build
22
33concurrency :
44 group : ${{ github.workflow }}-${{ github.ref }}
1010 pull_request :
1111 workflow_dispatch :
1212
13- env :
14- node_version : 22.x
15- pnpm_version : 9.x
16-
1713jobs :
1814 build :
1915 name : 🚧 Build
3632
3733 - name : 🧱 Install
3834 uses : ./.github/actions/install
39- with :
40- node_version : ${{ env.node_version }}
41- pnpm_version : ${{ env.pnpm_version }}
4235
4336 - name : 🧪 Unit tests
4437 run : |
5548
5649 - name : 🧱 Install
5750 uses : ./.github/actions/install
58- with :
59- node_version : ${{ env.node_version }}
60- pnpm_version : ${{ env.pnpm_version }}
6151
6252 - name : 🧹 Lint
6353 run : |
Original file line number Diff line number Diff line change 1- name : ☁️ Publish - npm Publish and Github Release
1+ name : ☁️ Publish
22
33on :
44 workflow_call :
1111 description : Tag name
1212 required : false
1313 type : string
14- skip-npm :
15- description : Skip npm publish
14+ workflow_dispatch :
15+ inputs :
16+ commit-hash :
17+ description : Commit to checkout
1618 required : false
17- type : boolean
18-
19- env :
20- node_version : 20.x
21- pnpm_version : 8.x
19+ type : string
20+ tag-name :
21+ description : Tag name
22+ required : false
23+ type : string
2224
2325jobs :
2426 publish-npm :
25- name : ☁️ Publish npm
27+ name : ☁️ Publish
2628 runs-on : ubuntu-latest
2729
2830 steps :
@@ -34,14 +36,15 @@ jobs:
3436
3537 - name : 🚧 Build
3638 uses : ./.github/actions/build
37- with :
38- node_version : ${{ env.node_version }}
39- pnpm_version : ${{ env.pnpm_version }}
4039
41- - name : ☁️ Publish to npm
42- if : ${{ inputs.skip-npm != true }}
40+ - name : ☁️ Publish
4341 env :
4442 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
4543 run : |
46- # ================= ☁️ Publish to npm =================
44+ # ================= ☁️ Publish =================
45+ # Check status
46+ git status
47+ git diff --color -U0 | cat
48+
49+ # Publish
4750 pnpm publish
Original file line number Diff line number Diff line change 1- name : 📦 Release - Tag, Release and Publish
1+ name : 📦 Release
22
33concurrency :
44 group : ${{ github.workflow }}-${{ github.ref }}
1616 required : false
1717 type : boolean
1818
19- env :
20- node_version : 20.x
21- pnpm_version : 8.x
22-
2319jobs :
2420 release :
2521 name : 📦 Tag and release commit
3935
4036 - name : 🧱 Install
4137 uses : ./.github/actions/install
42- with :
43- node_version : ${{ env.node_version }}
44- pnpm_version : ${{ env.pnpm_version }}
4538
4639 - name : 🏷️ Release
4740 run : |
8376 with :
8477 commit-hash : ${{ needs.release.outputs.commit-hash }}
8578 tag-name : ${{ inputs.tag-name || needs.release.outputs.tag-name }}
86- skip-npm : ${{ inputs.skip-npm }}
You can’t perform that action at this time.
0 commit comments