Skip to content

Commit

Permalink
use built-in caching with setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal committed Nov 1, 2021
1 parent 1972dbe commit 6452a26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
id: setup-node
with:
registry-url: "https://registry.npmjs.org"

- name: Cache node_modules
uses: actions/cache@v2
cache: "npm"

- name: Install dependencies
run: npm install
if: steps.setup-node.outputs.cache-hit != 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.ENVOYBOT_PERSONAL_ACCESS_TOKEN }}

Expand Down

0 comments on commit 6452a26

Please sign in to comment.