@mcpg-dev/pulumi-policy 0.1.0-beta.27 → 0.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +22 -0
- package/package.json +1 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -15,6 +15,28 @@ jobs:
|
|
|
15
15
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
16
16
|
with:
|
|
17
17
|
node-version: 22
|
|
18
|
+
- name: Wait for sibling packages on the registry
|
|
19
|
+
# Sibling deps are exact pins re-stated at the release cut, and a
|
|
20
|
+
# release wave pushes every sibling within seconds of each other:
|
|
21
|
+
# this CI runs on that push while the sibling's own release lane is
|
|
22
|
+
# still queued, so the pin it installs may not exist yet. Bounded
|
|
23
|
+
# above the release lane's wait because CI starts earlier than the
|
|
24
|
+
# two hosted jobs that publish the sibling.
|
|
25
|
+
run: |
|
|
26
|
+
set -euo pipefail
|
|
27
|
+
deps=$(jq -r '((.dependencies // {}) + (.peerDependencies // {}))
|
|
28
|
+
| to_entries[] | select(.key | startswith("@mcpg-dev/"))
|
|
29
|
+
| "\(.key)@\(.value)"' package.json)
|
|
30
|
+
[ -z "$deps" ] && { echo "no sibling packages"; exit 0; }
|
|
31
|
+
for d in $deps; do
|
|
32
|
+
echo "waiting for $d"
|
|
33
|
+
found=""
|
|
34
|
+
for _ in $(seq 1 120); do
|
|
35
|
+
if npm view "$d" version >/dev/null 2>&1; then found=1; break; fi
|
|
36
|
+
sleep 10
|
|
37
|
+
done
|
|
38
|
+
[ -n "$found" ] || { echo "::error::$d never appeared on the registry"; exit 1; }
|
|
39
|
+
done
|
|
18
40
|
# Unlocked on purpose: no lockfile ships with the source, so the
|
|
19
41
|
# install resolves fresh.
|
|
20
42
|
- run: npm install --no-audit --no-fund
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcpg-dev/pulumi-policy",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.34",
|
|
4
4
|
"repository": "https://github.com/mcpg-dev/pulumi-mcpg-policy",
|
|
5
5
|
"description": "Pulumi CrossGuard policy pack mirroring MCPG operator admission rules.",
|
|
6
6
|
"license": "Apache-2.0",
|