File tree Expand file tree Collapse file tree 2 files changed +79
-2
lines changed Expand file tree Collapse file tree 2 files changed +79
-2
lines changed Original file line number Diff line number Diff line change 5
5
types : [published]
6
6
7
7
jobs :
8
- publish :
8
+ tests :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
16
16
uses : actions/setup-node@v1
17
17
with :
18
18
node-version : 13
19
+ registry-url : https://registry.npmjs.org/
19
20
20
21
- name : install dependencies
21
22
run : npm ci
@@ -26,21 +27,97 @@ jobs:
26
27
- name : run tests
27
28
run : npm test
28
29
30
+ publish-dlx :
31
+ needs : tests
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+
35
+ - name : checkout
36
+ uses : actions/checkout@v2
37
+
38
+ - name : set up Node
39
+ uses : actions/setup-node@v1
40
+ with :
41
+ node-version : 13
42
+
43
+ - name : install dependencies
44
+ run : npm ci
45
+
46
+ - name : build
47
+ run : npm run build
48
+
29
49
- name : publish to DLx CDN
30
50
run : npm run upload
31
51
env :
32
52
AZURE_STORAGE_CONNECTION_STRING : ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
33
53
54
+ publish-npm :
55
+ needs : tests
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+
59
+ - name : checkout
60
+ uses : actions/checkout@v2
61
+
62
+ - name : set up Node
63
+ uses : actions/setup-node@v1
64
+ with :
65
+ node-version : 13
66
+ registry-url : https://registry.npmjs.org/
67
+
68
+ - name : install dependencies
69
+ run : npm ci
70
+
71
+ - name : build
72
+ run : npm run build
73
+
34
74
- name : publish to npm
35
75
run : npm publish
36
76
env :
37
77
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
38
78
79
+ publish-gpr :
80
+ needs : tests
81
+ runs-on : ubuntu-latest
82
+ steps :
83
+
84
+ - name : checkout
85
+ uses : actions/checkout@v2
86
+
87
+ - name : set up Node
88
+ uses : actions/setup-node@v1
89
+ with :
90
+ node-version : 13
91
+ registry-url : https://npm.pkg.github.com/
92
+ scope : ' @digitallinguistics'
93
+
94
+ - name : install dependencies
95
+ run : npm ci
96
+
97
+ - name : build
98
+ run : npm run build
99
+
39
100
- name : publish to GitHub Packages
40
101
run : npm publish
41
102
env :
42
103
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
104
105
+ publish-docs :
106
+ needs : tests
107
+ runs-on : ubuntu-latest
108
+ steps :
109
+
110
+ - name : checkout
111
+ uses : actions/checkout@v2
112
+
113
+ - name : set up Node
114
+ uses : actions/setup-node@v1
115
+ with :
116
+ node-version : 13
117
+
118
+ - name : install dependencies
119
+ run : npm ci
120
+
44
121
- name : create docs
45
122
run : npm run docs
46
123
Original file line number Diff line number Diff line change 19
19
"url" : " https://danielhieber.com"
20
20
}
21
21
],
22
- "config " : {
22
+ "publishConfig " : {
23
23
"access" : " public"
24
24
},
25
25
"repository" : " https://github.com/digitallinguistics/spec.git" ,
You can’t perform that action at this time.
0 commit comments