Skip to content

Commit

Permalink
cache for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Zurab committed Feb 1, 2023
1 parent 98c7f81 commit e233ff3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci

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

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts

- run: npx nx clear-cache
- run: npx nx affected:build --all --prod --parallel --max-parallel=3
- run: cd dist/libs/components && npm publish --verbose || exit_code=0
Expand Down

0 comments on commit e233ff3

Please sign in to comment.