8
8
nightly :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@master
11
+ - uses : actions/checkout@2
12
12
with :
13
13
ref : ' refs/heads/dev'
14
14
fetch-depth : 0 # All history
15
+ - name : fetch tags
16
+ run : git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
15
17
- uses : actions/setup-node@v1
16
18
with :
17
19
node-version : 12
@@ -38,20 +40,22 @@ jobs:
38
40
run : yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
39
41
- name : build
40
42
run : PACKAGE_SUFFIX=edge yarn build
41
- # - name: publish
42
- # run: ./scripts/workspace-run npm publish -q
43
- # env:
44
- # NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
43
+ - name : publish
44
+ run : ./scripts/workspace-run npm publish -q
45
+ env :
46
+ NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
45
47
46
48
# Anchors still not supported :(
47
49
# https://github.community/t5/GitHub-Actions/Support-for-YAML-anchors/td-p/30336
48
50
nightly-next :
49
51
runs-on : ubuntu-latest
50
52
steps :
51
- - uses : actions/checkout@master
53
+ - uses : actions/checkout@2
52
54
with :
53
55
ref : ' refs/heads/next'
54
56
fetch-depth : 0 # All history
57
+ - name : fetch tags
58
+ run : git fetch --depth=1 origin "+refs/tags/*:refs/tags/*"
55
59
- uses : actions/setup-node@v1
56
60
with :
57
61
node-version : 12
78
82
run : yarn lerna version --yes --no-changelog --no-git-tag-version --no-push --force-publish "*" --loglevel verbose
79
83
- name : build
80
84
run : PACKAGE_SUFFIX=edge yarn build
81
- # - name: publish
82
- # run: ./scripts/workspace-run npm publish --tag next -q
83
- # env:
84
- # NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
85
+ - name : publish
86
+ run : ./scripts/workspace-run npm publish --tag next -q
87
+ env :
88
+ NODE_AUTH_TOKEN : ${{secrets.NODE_AUTH_TOKEN}}
85
89
86
90
0 commit comments