Skip to content

Commit

Permalink
tools: update setup-node to use cache (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
MylesBorins authored Oct 15, 2021
1 parent 25f1a5b commit bcdb601
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ jobs:
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}

- name: Setup Node.js 14
uses: actions/setup-node@v1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: '16'
cache: 'npm'

- name: Install npm packages
run: npm ci
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: '16'
cache: 'npm'
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
run-tests:
strategy:
matrix:
node-version: [16.x, 14.x, 12.x]
node-version: ['16', '14', '12']
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -20,9 +20,10 @@ jobs:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Get npm cache directory
if: matrix.os != 'windows-latest'
Expand Down

0 comments on commit bcdb601

Please sign in to comment.