chore: update ci npm command (#2304)

This commit is contained in:
Sasha 2025-03-17 09:57:16 +01:00 committed by GitHub
parent 8db7690233
commit c315b363c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 11 deletions

View File

@ -9,12 +9,6 @@ runs:
GITHUB_CONTEXT: ${{ toJson(github) }}
- run: npm i
shell: bash
if: ${{ contains('
refs/heads/master
refs/heads/release-please--branches--master
', github.ref) }}
if: ${{ contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }}
- uses: bahmutov/npm-install@v1
if: ${{ contains('
refs/heads/master
refs/heads/release-please--branches--master
', github.ref) == false }}
if: ${{ !contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }}

View File

@ -123,7 +123,7 @@ async function makeReleaseCandidate() {
`npm version prerelease --preid $(git rev-parse --short HEAD) --workspaces true`
);
} catch (e) {
console.error("Failed to mark release candidate versions.", e);
console.error("Failed to mark release candidate versions.");
}
}
@ -147,7 +147,7 @@ async function upgradeWakuDependencies(workspaces) {
return acc;
}, {});
const packageNames = Object.keys(map);
workspaces.forEach(async (info) => {
const promises = workspaces.map(async (info) => {
if (info.private) {
return;
}
@ -171,4 +171,8 @@ async function upgradeWakuDependencies(workspaces) {
);
}
});
for (const promise of promises) {
await promise;
}
}