Skip to content

Commit

Permalink
fix: exporting cache from node-cache (#8)
Browse files Browse the repository at this point in the history
* fix: exporting cache from node-cache
  • Loading branch information
robdmoore authored Jan 8, 2024
1 parent 5cf4748 commit 0a66cde
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 253 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# == Cache frequently built and/or with large dependencies ==
# == Eviction policy: not accessed in over 7 days
# == Limit: 10 GB
# cache: 'npm'
# == Path to lock file when using mono repos ==
# cache-dependency-path: subdir/package-lock.json

- name: Restore packages
run: npm ci
registry-url: 'https://npm.pkg.github.com'
scope: '@makerxstudio'
cache: 'npm'
cache-dependency-path: ./package-lock.json

# run npm ci preventing script access to npm auth token
- run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.npm-auth-token || secrets.GITHUB_TOKEN }}
# allow scripts to run without npm auth token
- run: npm rebuild

- name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
Expand Down
115 changes: 75 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@
"node": ">=18.0"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.391.0",
"@makerxstudio/node-cache": "^1.0.0",
"async-retry": "^1.3.3",
"blockstore-core": "^4.3.3",
"ipfs-unixfs-importer": "^15.1.7",
"multiformats": "^9.9.0"
},
"peerDependencies": {},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
Expand Down
Loading

0 comments on commit 0a66cde

Please sign in to comment.