Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed May 17, 2021
1 parent 04de0cb commit 8e52ae9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
name: Latest

on: [push]
on:
push:
branches:
- main
tags-ignore:
- 'v*'
pull_request:

jobs:
verify:
name: Verify
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16]
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{ matrix.node }}
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ on:
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16]
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{ matrix.node }}
- name: Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
Expand All @@ -31,7 +34,7 @@ jobs:
needs: check
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
Expand All @@ -41,7 +44,7 @@ jobs:
needs: check
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Publish
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
Expand Down

0 comments on commit 8e52ae9

Please sign in to comment.