Skip to content

Commit 1c735f8

Browse files
authored
ci: update of files from global .github repo (#237)
1 parent 95ffbae commit 1c735f8

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/if-nodejs-pr-testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
id: should_run
3434
name: Should Run
3535
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
36+
shell: bash
3637
- if: steps.should_run.outputs.shouldrun == 'true'
3738
name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
3839
run: |
@@ -60,13 +61,13 @@ jobs:
6061
- if: steps.packagejson.outputs.exists == 'true'
6162
name: Install dependencies
6263
id: first-installation
63-
run: npm install --loglevel verbose
64+
run: npm ci
6465
continue-on-error: true
6566
- if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
6667
name: Clear NPM cache and install deps again
6768
run: |
6869
npm cache clean --force
69-
npm install --loglevel verbose
70+
npm ci
7071
- if: steps.packagejson.outputs.exists == 'true'
7172
name: Test
7273
run: npm test --if-present

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

Lines changed: 9 additions & 1 deletion
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 conventional-changelog-conventionalcommits@5.0.0

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

Lines changed: 1 addition & 1 deletion
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)