Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xapphire13 committed Feb 15, 2020
1 parent 1e92cbc commit 7f50844
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build and Test
on:
push:
branches:
- master
- master
pull_request:
branches:
- master
- master

jobs:
build:
Expand All @@ -18,13 +18,16 @@ jobs:

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install yarn
run: |
npm -g i yarn
- name: npm install, build, and test
run: |
yarn
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "10.x"
registry-url: "https://registry.npmjs.org"

- name: Check if version bump
id: check
uses: EndBug/[email protected]
Expand All @@ -19,10 +24,6 @@ jobs:
if: steps.check.outputs.changed != 'true'
run: echo "No version change"

- name: Install yarn
if: steps.check.outputs.changed == 'true'
run: npm -g i yarn

- name: Install deps
if: steps.check.outputs.changed == 'true'
run: yarn
Expand Down

0 comments on commit 7f50844

Please sign in to comment.