Skip to content

Commit fb3af87

Browse files
committed
Publish v4.5.0
1 parent 2e9b775 commit fb3af87

File tree

3 files changed

+57
-56
lines changed

3 files changed

+57
-56
lines changed

.github/workflows/publish.yml

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,60 @@
1-
name: publish
1+
name: build and publish
22

3-
on: release
3+
on:
4+
release:
5+
types: [published]
46

5-
jobs:
6-
test:
7-
name: Test
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v1
11-
- uses: actions/setup-node@v1
12-
with:
13-
node-version: 12
14-
- run: npm ci
15-
- run: npm test
7+
jobs:
8+
test:
9+
name: test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- run: npm ci
17+
- run: npm test
1618

17-
build:
18-
name: Build binaries
19-
needs: test
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v1
23-
- uses: actions/setup-node@v1
24-
with:
25-
node-version: 12
26-
registry-url: https://registry.npmjs.org/
27-
- name: npm run build
28-
run: |
29-
npm install
30-
npm run build
31-
- name: upload linux binary
32-
uses: actions/upload-artifact@master
33-
with:
34-
name: https-localhost-linux
35-
path: build
36-
- name: upload macos binary
37-
uses: actions/upload-artifact@master
38-
with:
39-
name: https-localhost-macos
40-
path: build
41-
- name: upload windows binary
42-
uses: actions/upload-artifact@master
43-
with:
44-
name: https-localhost-win.exe
19+
build:
20+
name: build binaries
21+
needs: test
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 12
28+
- name: npm run build
29+
run: |
30+
npm install
31+
npm run build
32+
- name: upload linux binary
33+
uses: actions/upload-artifact@master
34+
with:
35+
name: https-localhost-linux
36+
path: build
37+
- name: upload macos binary
38+
uses: actions/upload-artifact@master
39+
with:
40+
name: https-localhost-macos
41+
path: build
42+
- name: upload windows binary
43+
uses: actions/upload-artifact@master
44+
with:
45+
name: https-localhost-win.exe
4546
path: build
4647

47-
npm-publish:
48-
name: Publish NPM
49-
needs: test
50-
runs-on: ubuntu-latest
51-
steps:
52-
- uses: actions/checkout@v1
53-
- uses: actions/setup-node@v1
54-
with:
55-
node-version: 12
56-
registry-url: https://registry.npmjs.org/
57-
- run: npm publish
58-
env:
48+
npm-publish:
49+
name: npm publish
50+
needs: test
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v1
54+
- uses: actions/setup-node@v1
55+
with:
56+
node-version: 12
57+
registry-url: https://registry.npmjs.org/
58+
- run: npm publish
59+
env:
5960
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "https-localhost",
3-
"version": "4.4.2",
3+
"version": "4.5.0",
44
"description": "HTTPS server running on localhost",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)