Skip to content

Commit 6cb083c

Browse files
committed
chore: update GitHub Actions workflow to change npm install to npm ci for consistent dependency installation and add condition for deployment job
1 parent 79b2cb5 commit 6cb083c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deployment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
run: npm test
4242
tag:
4343
name: "Publishing release"
44+
4445
if: github.event_name != 'pull_request'
46+
needs:
4547
- tests
4648
runs-on: mulesoft-ubuntu
4749
steps:
@@ -59,7 +61,7 @@ jobs:
5961
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
6062
restore-keys: |
6163
${{ runner.os }}-node-
62-
- run: npm install
64+
- run: npm ci
6365
- name: Read version from package.json
6466
uses: culshaw/read-package-node-version-actions@v1
6567
id: package-node-version

0 commit comments

Comments
 (0)