mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
chore: update ci npm command (#2304)
This commit is contained in:
parent
8db7690233
commit
c315b363c5
12
.github/actions/npm/action.yml
vendored
12
.github/actions/npm/action.yml
vendored
@ -6,15 +6,9 @@ runs:
|
|||||||
- run: echo "$GITHUB_CONTEXT"
|
- run: echo "$GITHUB_CONTEXT"
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
- run: npm i
|
- run: npm i
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ contains('
|
if: ${{ contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }}
|
||||||
refs/heads/master
|
|
||||||
refs/heads/release-please--branches--master
|
|
||||||
', github.ref) }}
|
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
if: ${{ contains('
|
if: ${{ !contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }}
|
||||||
refs/heads/master
|
|
||||||
refs/heads/release-please--branches--master
|
|
||||||
', github.ref) == false }}
|
|
||||||
|
|||||||
@ -123,7 +123,7 @@ async function makeReleaseCandidate() {
|
|||||||
`npm version prerelease --preid $(git rev-parse --short HEAD) --workspaces true`
|
`npm version prerelease --preid $(git rev-parse --short HEAD) --workspaces true`
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} 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;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
const packageNames = Object.keys(map);
|
const packageNames = Object.keys(map);
|
||||||
workspaces.forEach(async (info) => {
|
const promises = workspaces.map(async (info) => {
|
||||||
if (info.private) {
|
if (info.private) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -171,4 +171,8 @@ async function upgradeWakuDependencies(workspaces) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
for (const promise of promises) {
|
||||||
|
await promise;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user