This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): fix condition for the release step (#11)
- Loading branch information
1 parent
0b6313c
commit fe657ae
Showing
2 changed files
with
83 additions
and
37 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 |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.