Skip to content

Commit

Permalink
Publish v4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinoaldo committed Feb 24, 2020
1 parent 2e9b775 commit fb3af87
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 56 deletions.
107 changes: 54 additions & 53 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,60 @@
name: publish
name: build and publish

on: release
on:
release:
types: [published]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

build:
name: Build binaries
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: npm run build
run: |
npm install
npm run build
- name: upload linux binary
uses: actions/upload-artifact@master
with:
name: https-localhost-linux
path: build
- name: upload macos binary
uses: actions/upload-artifact@master
with:
name: https-localhost-macos
path: build
- name: upload windows binary
uses: actions/upload-artifact@master
with:
name: https-localhost-win.exe
build:
name: build binaries
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: npm run build
run: |
npm install
npm run build
- name: upload linux binary
uses: actions/upload-artifact@master
with:
name: https-localhost-linux
path: build
- name: upload macos binary
uses: actions/upload-artifact@master
with:
name: https-localhost-macos
path: build
- name: upload windows binary
uses: actions/upload-artifact@master
with:
name: https-localhost-win.exe
path: build

npm-publish:
name: Publish NPM
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
npm-publish:
name: npm publish
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "https-localhost",
"version": "4.4.2",
"version": "4.5.0",
"description": "HTTPS server running on localhost",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit fb3af87

Please sign in to comment.