File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : publish-commit
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ['ci']
6
+ branches : [main, minor, test-publish]
7
+ types :
8
+ - completed
9
+
10
+ jobs :
11
+ pubilsh :
12
+ if : >
13
+ github.repository == 'vuejs/core' &&
14
+ github.event.workflow_run.event == 'push' &&
15
+ github.event.workflow_run.conclusion == 'success'
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install pnpm
22
+ uses : pnpm/action-setup@v4
23
+
24
+ - name : Install Node.js
25
+ uses : actions/setup-node@v4
26
+ with :
27
+ node-version-file : ' .node-version'
28
+ registry-url : ' https://npm.pkg.github.com'
29
+ cache : ' pnpm'
30
+
31
+ - name : Install deps
32
+ run : pnpm install
33
+
34
+ - name : Build and publish
35
+ id : publish
36
+ run : |
37
+ pnpm release 0.0.0-${{ github.event.workflow_run.head_commit }} --tag ${{ github.event.workflow_run.head_branch }} --publishOnly
38
+ env :
39
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments