File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ jobs:
13
13
build :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
17
17
18
18
- uses : pnpm/action-setup@v2
19
19
with :
20
- version : 7
20
+ version : 8
21
21
22
22
- uses : actions/setup-node@v3
23
23
with :
24
- node-version : 18 .x
24
+ node-version : 20 .x
25
25
cache : ' pnpm'
26
26
27
27
- name : Install
@@ -74,18 +74,18 @@ jobs:
74
74
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
75
75
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
76
76
steps :
77
- - uses : actions/checkout@v3
78
-
79
- - name : Prepare repository
80
- run : git fetch --unshallow -- tags
77
+ - uses : actions/checkout@v4
78
+ with :
79
+ fetch-depth : 100
80
+ fetch- tags : true
81
81
82
82
- uses : pnpm/action-setup@v2
83
83
with :
84
- version : 7
84
+ version : 8
85
85
86
86
- uses : actions/setup-node@v3
87
87
with :
88
- node-version : 18 .x
88
+ node-version : 20 .x
89
89
cache : ' pnpm'
90
90
registry-url : ' https://registry.npmjs.org'
91
91
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import packageJson from '../package.json' assert { type: 'json' }
19
19
20
20
if ( checkStatus ( ) === 'clear' ) process . exit ( 0 )
21
21
22
- commitAndPush ( { version, branch } )
22
+ commitAndPush ( { version } )
23
23
publishToNPM ( {
24
24
tag :
25
25
branch === PRODUCTION_BRANCH
@@ -79,14 +79,14 @@ function getVersion(packageJson) {
79
79
}
80
80
81
81
/**
82
- * @param {{ version: string, branch: string } } params
82
+ * @param {{ version: string } } params
83
83
*/
84
- function commitAndPush ( { version, branch } ) {
84
+ function commitAndPush ( { version } ) {
85
85
exec ( `
86
86
git config user.name 'Piotr Monwid-Olechnowicz'
87
87
git config user.email '[email protected] '
88
88
git commit -am "Bump versions to: ${ version } [skip ci]"
89
- git push origin HEAD: ${ branch }
89
+ git push
90
90
` )
91
91
}
92
92
You can’t perform that action at this time.
0 commit comments