Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
ci(release): fix condition for the release step (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Nov 28, 2019
1 parent 0b6313c commit fe657ae
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 37 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: CI

on: [push]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js v10
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-${{ env.cache-name }}-
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: |
npm install -g yarn
yarn --pure-lockfile
- name: Lint
run: yarn lint

licences:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js v10
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-${{ env.cache-name }}-
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: |
npm install -g yarn
yarn --pure-lockfile
- name: Check licenses
run: yarn check:licenses

release:
runs-on: ubuntu-latest
needs: [lint, licences]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js v10
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Cache dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-${{ env.cache-name }}-
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: |
npm install -g yarn
yarn --pure-lockfile
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release
37 changes: 0 additions & 37 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit fe657ae

Please sign in to comment.