Skip to content

Commit f15762d

Browse files
committed
FIX: release workflow
1 parent 092e64e commit f15762d

File tree

2 files changed

+79
-2
lines changed

2 files changed

+79
-2
lines changed

.github/workflows/release.yml

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
publish:
8+
tests:
99
runs-on: ubuntu-latest
1010
steps:
1111

@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: 13
19+
registry-url: https://registry.npmjs.org/
1920

2021
- name: install dependencies
2122
run: npm ci
@@ -26,21 +27,97 @@ jobs:
2627
- name: run tests
2728
run: npm test
2829

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+
2949
- name: publish to DLx CDN
3050
run: npm run upload
3151
env:
3252
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
3353

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+
3474
- name: publish to npm
3575
run: npm publish
3676
env:
3777
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3878

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+
39100
- name: publish to GitHub Packages
40101
run: npm publish
41102
env:
42103
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43104

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+
44121
- name: create docs
45122
run: npm run docs
46123

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"url": "https://danielhieber.com"
2020
}
2121
],
22-
"config": {
22+
"publishConfig": {
2323
"access": "public"
2424
},
2525
"repository": "https://github.com/digitallinguistics/spec.git",

0 commit comments

Comments
 (0)