Build every commit

This commit is contained in:
Max Isom 2021-12-16 14:00:21 -05:00
parent 7c1e860c50
commit ea6367ccdc
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
2 changed files with 24 additions and 45 deletions

View file

@ -1,31 +1,28 @@
name: Lint & build
on:
push:
branches:
- master
on: push
jobs:
build:
name: Lint & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ./node_modules
key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-dependencies-${{ env.cache-name }}-
${{ runner.OS }}-dependencies-
${{ runner.OS }}-
- name: Install dependencies
run: yarn install
- name: Run lint
run: yarn lint
- name: Build
run: yarn build
build:
name: Lint & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ./node_modules
key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-dependencies-${{ env.cache-name }}-
${{ runner.OS }}-dependencies-
${{ runner.OS }}-
- name: Install dependencies
run: yarn install
- name: Run lint
run: yarn lint
- name: Build
run: yarn build

View file

@ -7,24 +7,6 @@ on:
- master
jobs:
build:
name: Build & lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run lint
run: yarn lint
- name: Build
run: yarn build
release:
name: Release snapshot
runs-on: ubuntu-latest