File tree 3 files changed +39
-26
lines changed
3 files changed +39
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
10
10
publish-npm :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
14
- - uses : actions/setup-node@v1
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
15
with :
16
- node-version : 12
17
- registry-url : https://registry.npmjs.org/
16
+ node-version : 16
17
+ registry-url : https://registry.npmjs.org
18
18
- run : npm ci
19
19
- run : npm publish --access public
20
20
env :
Original file line number Diff line number Diff line change
1
+ # This workflow bumps the package.json version and creates a PR
2
+
3
+ name : Update package version
4
+
5
+ on :
6
+ workflow_dispatch :
7
+ inputs :
8
+ segment :
9
+ description : ' Semver segment to update'
10
+ required : true
11
+ default : ' patch'
12
+ type : choice
13
+ options :
14
+ - minor
15
+ - patch
16
+
17
+ jobs :
18
+ update-version :
19
+ name : Update package version
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - uses : actions/setup-node@v2
24
+ with :
25
+ node-version : 16
26
+ - run : echo "Updating ${{ inputs.segment }} version"
27
+ - name : Update version
28
+ run : npm --no-git-tag-version version ${{ inputs.segment }}
29
+ - uses : peter-evans/create-pull-request@v4
30
+ with :
31
+ base : ' master'
32
+ branch : ' version/automated'
33
+ title : ' Update package version (automated)'
34
+ commit-message : ' Update package version'
35
+ body : ' Automated update to ${{ inputs.segment }} version'
You can’t perform that action at this time.
0 commit comments