-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e9b775
commit fb3af87
Showing
3 changed files
with
57 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters