Skip to content

Commit

Permalink
converted main.workflow to Actions V2 yml files (#1018)
Browse files Browse the repository at this point in the history
* converted main.workflow to Actions V2 yml files

* dump github context

* publish if release is created
  • Loading branch information
johnnyreilly authored Sep 28, 2019
1 parent ce39c25 commit b4806e0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/main.workflow

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/push.yml
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

0 comments on commit b4806e0

Please sign in to comment.