Skip to content

Commit

Permalink
fix: yarn cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Jun 10, 2024
1 parent da5c9c4 commit 5a78873
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
# instead of using the local cache in .yarn folder, since it's in .gitignore
# cache: 'yarn'
- name: clean cache
run: yarn cache clean --all
- name: Install dependencies
run: yarn
- name: Run Jest tests
Expand All @@ -41,3 +43,5 @@ jobs:
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update example lib
run: yarn example
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"copy-files-esm": "copyfiles -u 1 src/*types.d.ts dist/esm",
"clean-cache": "yarn cache clean --all",
"fixImportExtension": "ts-add-js-extension --dir=dist",
"example": "cd example && yarn upgrade && rimraf ./example/node_modules && yarn",
"example": "cd example && yarn upgrade check-password-complexity && yarn dev",
"test": "jest",
"test:watch": "jest watch",
"test:coverage": "jest --coverage"
Expand Down

0 comments on commit 5a78873

Please sign in to comment.