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

View file

@ -7,24 +7,6 @@ on:
- master - master
jobs: 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: release:
name: Release snapshot name: Release snapshot
runs-on: ubuntu-latest runs-on: ubuntu-latest