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 25, 2020
1 parent 9a3d816 commit 477ea55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Latest

on:
push:
branches:
- master
on: [push]

jobs:
verify:
Expand All @@ -15,19 +12,19 @@ jobs:
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 13.2
node-version: 14
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install
run: npm ci
# - name: Test
# run: npm t
run: npm i
- name: Test
run: npm run test --if-present
- name: Lint
run: npm run lint
# - name: Types
# run: npm run types
run: npm run lint --if-present
- name: Types
run: npm run types --if-present
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 13.2
node-version: 14
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Verify
run: |
npm ci
npm i
npm run preversion
npm:
runs-on: ubuntu-latest
Expand All @@ -47,4 +47,4 @@ jobs:
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
ORG="$(echo '${{ github.repository }}' | cut -d'/' -f1)"
echo "registry=https://npm.pkg.github.com/$ORG" > .npmrc
npm publish
npm publish

0 comments on commit 477ea55

Please sign in to comment.