Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 943992d

Browse files
author
asyncapi-bot
committed
ci: update of files from global .github repo
1 parent 2a64b39 commit 943992d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/if-nodejs-release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
- name: Check if Node.js project and has package.json
8686
id: packagejson
8787
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
88+
shell: bash
8889
- if: steps.packagejson.outputs.exists == 'true'
8990
name: Check package-lock version
9091
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
@@ -98,7 +99,14 @@ jobs:
9899
cache-dependency-path: '**/package-lock.json'
99100
- if: steps.packagejson.outputs.exists == 'true'
100101
name: Install dependencies
101-
run: npm install
102+
id: first-installation
103+
run: npm ci
104+
continue-on-error: true
105+
- if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
106+
name: Clear NPM cache and install deps again
107+
run: |
108+
npm cache clean --force
109+
npm ci
102110
- if: steps.packagejson.outputs.exists == 'true'
103111
name: Add plugin for conventional commits for semantic-release
104112
run: npm install --save-dev [email protected]

.github/workflows/if-nodejs-version-bump.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cache-dependency-path: '**/package-lock.json'
3838
- if: steps.packagejson.outputs.exists == 'true'
3939
name: Install dependencies
40-
run: npm install
40+
run: npm ci
4141
- if: steps.packagejson.outputs.exists == 'true'
4242
name: Assets generation
4343
run: npm run generate:assets --if-present

0 commit comments

Comments
 (0)