Skip to content

Commit

Permalink
fix: try known node setup for npm package pull in playwright ci yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbrntt committed Mar 21, 2024
1 parent aabd09c commit f570a0f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
node-version-file: .nvmrc
registry-url: "https://npm.pkg.github.com"

- name: Cache Node Modules
id: cache
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}

- name: Clean install (CI) dependencies if lockfile (above) changed
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f570a0f

Please sign in to comment.