-
-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
converted main.workflow to Actions V2 yml files (#1018)
* converted main.workflow to Actions V2 yml files * dump github context * publish if release is created
- Loading branch information
1 parent
ce39c25
commit b4806e0
Showing
2 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: push | ||
name: build, test and (only if this a release) publish | ||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
# - name: Dump GitHub context | ||
# env: | ||
# GITHUB_CONTEXT: ${{ toJson(github) }} | ||
# run: echo "$GITHUB_CONTEXT" | ||
|
||
- name: install | ||
uses: actions/npm@1.0.0 | ||
with: | ||
entrypoint: yarn | ||
args: install | ||
|
||
- name: build | ||
uses: actions/npm@1.0.0 | ||
with: | ||
entrypoint: yarn | ||
args: build | ||
|
||
- name: test | ||
uses: ./.github/node-chrome | ||
with: | ||
entrypoint: yarn | ||
args: execution-tests | ||
|
||
- name: publish if release is created | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
uses: actions/npm@1.0.0 | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
with: | ||
args: publish |