File tree Expand file tree Collapse file tree 2 files changed +46
-3
lines changed Expand file tree Collapse file tree 2 files changed +46
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Bump Meshery, Meshery Extensions and Meshery Cloud
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ workflow_run :
5
+ workflows : [Publish Node.js Package]
6
+ types :
7
+ - completed
6
8
7
9
jobs :
10
+ versions-check :
11
+ runs-on : ubuntu-latest
12
+ outputs :
13
+ current : ${{ steps.current.outputs.VERSION }}
14
+ steps :
15
+ - name : Download Version
16
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
17
+ with :
18
+ name : e2e-test-reporter
19
+ github-token : ${{ secrets.GH_ACCESS_TOKEN }}
20
+ run-id : ${{ github.event.workflow_run.id }}
21
+ - name : Retrieve Version
22
+ run : |
23
+ echo "VERSION=$(cat ./version/number)" >> $GITHUB_OUTPUT
24
+ id : current
8
25
bump-meshery :
9
26
runs-on : ubuntu-latest
10
27
steps :
21
38
cache-dependency-path : ' **/package-lock.json'
22
39
- name : Make changes to pull request
23
40
working-directory : ui
24
- run : npm install @layer5/sistent@latest
41
+ run : npm install @layer5/sistent@${{job.status}}
25
42
- name : Create Pull Request
26
43
id : cpr
27
44
uses : peter-evans/create-pull-request@v7
Original file line number Diff line number Diff line change 44
44
npm publish --verbose
45
45
env:
46
46
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47
+ versions-check :
48
+ runs-on : ubuntu-latest
49
+ outputs :
50
+ current : ${{ steps.versions.outputs }}
51
+ steps :
52
+ - uses : actions/github-script@v7
53
+ id : versions
54
+ with :
55
+ result-encoding : string
56
+ script : |
57
+ let str = "${{github.event.release.tag_name}}"
58
+
59
+ return str.replace(/^v/, '')
60
+ - name : Save Release number
61
+ if : ${{ !cancelled() }}
62
+ run : |
63
+ mkdir -p ./version
64
+ echo ${{ steps.versions.outputs }} > ./version/number
65
+ - name : Upload Version Report
66
+ if : ${{ !cancelled() }}
67
+ uses : actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
68
+ with :
69
+ name : version-number
70
+ path : |
71
+ version/number
72
+ retention-days : 14
You can’t perform that action at this time.
0 commit comments