Skip to content

Commit

Permalink
Fix CD
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed May 11, 2021
1 parent 35ccb70 commit bec5eb5
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,33 @@ on:
- 'v*'

jobs:
publish:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Verify
run: |
npm i
npm run preversion
npm:
runs-on: ubuntu-latest
needs: check
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 14
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Verify
run: |
npm ci
npm run preversion
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
npm publish
npm publish --access public

0 comments on commit bec5eb5

Please sign in to comment.