diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4682b9e..67d57c7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -41,3 +43,5 @@ jobs: run: yarn npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Update example lib + run: yarn example diff --git a/package.json b/package.json index 4314a08..8db75b8 100644 --- a/package.json +++ b/package.json @@ -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"