File tree 3 files changed +19
-18
lines changed
3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
- on : { push: { tags: 'v[0-9]+.[0-9]+.[0-9]+' } }
2
+ on : { push: { tags: 'v[0-9]+.[0-9]+.[0-9]+*' } }
3
+
4
+ env :
5
+ PRERELEASE : ${{ contains(github.ref, '-') }}
3
6
4
7
jobs :
5
8
github :
6
9
runs-on : ubuntu-latest
7
10
steps :
8
11
- uses : jasonkarns/create-release@master
12
+ with :
13
+ prerelease : ${{ env.PRERELEASE }}
9
14
10
15
homebrew :
11
16
runs-on : ubuntu-latest
12
17
steps :
13
18
- uses : mislav/bump-homebrew-formula-action@v1
19
+ if : ${{ ! env.PRERELEASE }} # this is meant to guard the entire job but workflow-level env vars are buggy
14
20
with :
15
21
formula-name : node-build-update-defs
16
22
homebrew-tap : nodenv/nodenv
25
31
with :
26
32
scope : nodenv
27
33
registry-url : https://registry.npmjs.org
34
+ - run : npm publish --tags next
35
+ if : ${{ env.PRERELEASE }}
36
+ env :
37
+ NODE_AUTH_TOKEN : ${{ secrets.NPMJS_TOKEN }}
28
38
- run : npm publish
39
+ if : ${{ ! env.PRERELEASE }} # TODO: find a way to simplify this
29
40
env :
30
41
NODE_AUTH_TOKEN : ${{ secrets.NPMJS_TOKEN }}
Original file line number Diff line number Diff line change 36
36
"lint" : " npm run lint:js && npm run lint:shell" ,
37
37
"lint:js" : " prettier-standard '**/*.js' && standard --fix" ,
38
38
"lint:shell" : " git ls-files bin | xargs shellcheck" ,
39
- "postversion" : " npm publish" ,
40
- "prepublishOnly" : " npm run publish:github && npm run publish:brew" ,
41
- "publish:brew" : " brew-publish" ,
42
- "publish:github" : " git push --follow-tags"
39
+ "postversion" : " git push --follow-tags"
43
40
},
44
41
"engines" : {
45
42
"node" : " >=6"
46
43
},
47
44
"devDependencies" : {
48
- "brew-publish" : " ^2.3.1" ,
49
45
"prettier-standard" : " ^16.4.1" ,
50
46
"standard" : " ^14.3.4"
51
47
}
You can’t perform that action at this time.
0 commit comments