Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 68 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,31 +222,79 @@ jobs:
CLI_VERSION=$(node -p "require('./packages/cli/package.json').version")
echo "cli=$CLI_VERSION" >> $GITHUB_OUTPUT

- name: Verify CLI published to npm
- name: Verify CLI and its walkerOS dependencies published to npm
env:
CLI_VERSION: ${{ steps.versions.outputs.cli }}
run: |
# The image builds below run `npm install @walkeros/cli@$CLI_VERSION`
# in a fresh container: no local cache, no .npmrc. Ask the registry the
# same way, rather than through the runner's `npm view`, whose packument
# cache is primed by `changeset publish` moments earlier and can serve a
# pre-publish document for minutes (and whose setup-node .npmrc carries
# an unset _authToken under Trusted Publishing). The budget must clear
# the registry's ~5min packument max-age.
URL="https://registry.npmjs.org/@walkeros%2Fcli/${CLI_VERSION}"
for i in $(seq 1 30); do
CODE="$(curl -sS -o /tmp/npm-probe.json -w '%{http_code}' \
-H 'Cache-Control: no-cache' "$URL" || echo 000)"
if [ "$CODE" = "200" ]; then
echo "Verified: @walkeros/cli@${CLI_VERSION} resolves on the registry"
exit 0
# The image builds run `npm install @walkeros/cli@$CLI_VERSION` in a
# fresh container, which resolves the CLI's whole dependency closure.
# `changeset publish` lands those packages on the registry out of
# order, so wait for every @walkeros/* dependency too, not just the
# CLI. They all carry one version (the `fixed` group in
# .changeset/config.json).
#
# Wait for the tarball, not just the metadata. The packument lists a
# version minutes before its tarball is fetchable, and the tarball is
# what `npm install` downloads. Probe both, uncached, from this runner:
# buildkit shares its network, so a 200 here predicts a 200 there.
if ! PKGS="$(node -e '
const m = require("./packages/cli/package.json");
const deps = { ...m.dependencies, ...m.peerDependencies };
const walkeros = Object.keys(deps).filter((n) => n.startsWith("@walkeros/"));
process.stdout.write(["@walkeros/cli", ...walkeros].join(" "));
')"; then
echo "::error::Could not read packages/cli/package.json to build the wait list"
exit 1
fi

# An empty list would pass this gate having verified nothing.
case " $PKGS " in
*" @walkeros/cli "*) ;;
*)
echo "::error::Wait list is missing @walkeros/cli (got: '$PKGS')"
exit 1
;;
esac
echo "Waiting for: $PKGS"

for PKG in $PKGS; do
ENCODED="${PKG/\//%2F}"
URL="https://registry.npmjs.org/${ENCODED}"
OK=0
for i in $(seq 1 30); do
CODE="$(curl -sS -o /tmp/npm-probe.json -w '%{http_code}' \
-H 'Accept: application/vnd.npm.install-v1+json' "$URL" \
|| echo 000)"
TARBALL=""
if [ "$CODE" = "200" ]; then
TARBALL="$(node -e '
const doc = JSON.parse(
require("fs").readFileSync("/tmp/npm-probe.json", "utf8"),
);
process.stdout.write(
doc.versions?.[process.argv[1]]?.dist?.tarball ?? "",
);
' "$CLI_VERSION")"
fi
TCODE="-"
if [ -n "$TARBALL" ]; then
TCODE="$(curl -sS -o /dev/null -w '%{http_code}' -L "$TARBALL" \
|| echo 000)"
if [ "$TCODE" = "200" ]; then
echo "Verified: ${PKG}@${CLI_VERSION} (metadata + tarball)"
OK=1
break
fi
fi
echo " ${PKG} attempt $i/30 (meta $CODE, tarball $TCODE): waiting..."
sleep 15
done
if [ "$OK" != "1" ]; then
echo "::error::${PKG}@${CLI_VERSION} not installable after ~7min (meta $CODE, tarball $TCODE)"
exit 1
fi
echo "Attempt $i/30 (HTTP $CODE): waiting for npm propagation..."
sleep 15
done
echo "::error::@walkeros/cli@${CLI_VERSION} not resolvable after ~7min (last HTTP $CODE)"
head -c 2000 /tmp/npm-probe.json || true
exit 1
echo "All packages the CLI install needs are on the registry."

# Log in before the existence probes: anonymous `docker manifest inspect`
# is rate limited, and a 429 is indistinguishable from "missing" below.
Expand Down
10 changes: 10 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# walkeros

## 4.6.0

### Patch Changes

- Updated dependencies [8802281]
- Updated dependencies [fd5949e]
- Updated dependencies [403ff6c]
- Updated dependencies [23e9034]
- @walkeros/cli@4.6.0

## 4.5.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "walkeros",
"version": "4.5.0",
"version": "4.6.0",
"description": "walkerOS CLI - Bundle and deploy walkerOS components",
"license": "MIT",
"type": "module",
Expand All @@ -18,7 +18,7 @@
"clean": "rm -rf .turbo && rm -rf dist"
},
"dependencies": {
"@walkeros/cli": "4.5.0"
"@walkeros/cli": "4.6.0"
},
"devDependencies": {
"tsup": "^8.5.1",
Expand Down
12 changes: 12 additions & 0 deletions apps/demos/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# walkeros-demo-react

## 2.0.20

### Patch Changes

- Updated dependencies [8802281]
- @walkeros/collector@4.6.0
- @walkeros/web-destination-api@4.6.0
- @walkeros/web-source-browser@4.6.0
- @walkeros/core@4.6.0
- @walkeros/web-core@4.6.0
- @walkeros/web-destination-gtag@4.6.0

## 2.0.19

### Patch Changes
Expand Down
16 changes: 8 additions & 8 deletions apps/demos/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "walkeros-demo-react",
"version": "2.0.19",
"version": "2.0.20",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -16,12 +16,12 @@
},
"dependencies": {
"@remix-run/router": "^1.23.0",
"@walkeros/collector": "4.5.0",
"@walkeros/core": "4.5.0",
"@walkeros/web-core": "4.5.0",
"@walkeros/web-destination-api": "4.5.0",
"@walkeros/web-destination-gtag": "4.5.0",
"@walkeros/web-source-browser": "4.5.0",
"@walkeros/collector": "4.6.0",
"@walkeros/core": "4.6.0",
"@walkeros/web-core": "4.6.0",
"@walkeros/web-destination-api": "4.6.0",
"@walkeros/web-destination-gtag": "4.6.0",
"@walkeros/web-source-browser": "4.6.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-router-dom": "^7.10.1"
Expand All @@ -34,7 +34,7 @@
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"@walkeros/config": "4.5.0",
"@walkeros/config": "4.6.0",
"autoprefixer": "^10.4.23",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
Expand Down
7 changes: 7 additions & 0 deletions apps/demos/storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @walkeros/storybook-demo

## 4.6.0

### Patch Changes

- @walkeros/web-source-browser@4.6.0
- @walkeros/core@4.6.0

## 4.5.0

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions apps/demos/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@walkeros/storybook-demo",
"private": true,
"version": "4.5.0",
"version": "4.6.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -13,8 +13,8 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@walkeros/core": "4.5.0",
"@walkeros/web-source-browser": "4.5.0",
"@walkeros/core": "4.6.0",
"@walkeros/web-source-browser": "4.6.0",
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
Expand All @@ -26,7 +26,7 @@
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"@walkeros/storybook-addon": "4.5.0",
"@walkeros/storybook-addon": "4.6.0",
"autoprefixer": "^10.4.23",
"eslint": "^9.39.2",
"eslint-plugin-react-hooks": "^7.0.1",
Expand Down
10 changes: 10 additions & 0 deletions apps/explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @walkeros/explorer

## 4.6.0

### Patch Changes

- Updated dependencies [8802281]
- @walkeros/collector@4.6.0
- @walkeros/web-source-browser@4.6.0
- @walkeros/core@4.6.0
- @walkeros/web-core@4.6.0

## 4.5.0

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions apps/explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walkeros/explorer",
"version": "4.5.0",
"version": "4.6.0",
"description": "Interactive React components for walkerOS documentation and exploration",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -36,10 +36,10 @@
"@rjsf/core": "^6.1.2",
"@rjsf/utils": "^6.1.2",
"@rjsf/validator-ajv8": "^6.1.2",
"@walkeros/collector": "4.5.0",
"@walkeros/core": "4.5.0",
"@walkeros/web-core": "4.5.0",
"@walkeros/web-source-browser": "4.5.0",
"@walkeros/collector": "4.6.0",
"@walkeros/core": "4.6.0",
"@walkeros/web-core": "4.6.0",
"@walkeros/web-source-browser": "4.6.0",
"clsx": "^2.1.1",
"monaco-editor": "^0.55.1",
"prettier": "^3.7.4",
Expand All @@ -65,8 +65,8 @@
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"@vitejs/plugin-react": "^6.0.2",
"@walkeros/config": "4.5.0",
"@walkeros/web-destination-gtag": "4.5.0",
"@walkeros/config": "4.6.0",
"@walkeros/web-destination-gtag": "4.6.0",
"eslint": "^9.23.0",
"eslint-plugin-jest": "^29.15.2",
"eslint-plugin-storybook": "^10.1.11",
Expand Down
12 changes: 12 additions & 0 deletions apps/quickstart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @walkeros/quickstart

## 4.6.0

### Patch Changes

- Updated dependencies [8802281]
- @walkeros/collector@4.6.0
- @walkeros/web-destination-api@4.6.0
- @walkeros/web-source-browser@4.6.0
- @walkeros/core@4.6.0
- @walkeros/web-core@4.6.0
- @walkeros/web-destination-gtag@4.6.0

## 4.5.0

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions apps/quickstart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walkeros/quickstart",
"version": "4.5.0",
"version": "4.6.0",
"private": true,
"description": "Verified code examples for walkerOS documentation",
"license": "MIT",
Expand All @@ -14,12 +14,12 @@
"update": "npx npm-check-updates -u && npm update"
},
"dependencies": {
"@walkeros/core": "4.5.0",
"@walkeros/collector": "4.5.0",
"@walkeros/web-core": "4.5.0",
"@walkeros/web-source-browser": "4.5.0",
"@walkeros/web-destination-gtag": "4.5.0",
"@walkeros/web-destination-api": "4.5.0"
"@walkeros/core": "4.6.0",
"@walkeros/collector": "4.6.0",
"@walkeros/web-core": "4.6.0",
"@walkeros/web-source-browser": "4.6.0",
"@walkeros/web-destination-gtag": "4.6.0",
"@walkeros/web-destination-api": "4.6.0"
},
"repository": {
"url": "git+https://github.com/elbwalker/walkerOS.git",
Expand Down
10 changes: 10 additions & 0 deletions apps/storybook-addon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @walkeros/storybook-addon

## 4.6.0

### Patch Changes

- Updated dependencies [8802281]
- @walkeros/collector@4.6.0
- @walkeros/web-source-browser@4.6.0
- @walkeros/core@4.6.0
- @walkeros/web-core@4.6.0

## 4.5.0

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions apps/storybook-addon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walkeros/storybook-addon",
"version": "4.5.0",
"version": "4.6.0",
"description": "Visualize, debug, and validate walkerOS event tracking in your Storybook stories. Real-time event capture with visual DOM highlighting for data-attribute based tagging.",
"keywords": [
"storybook-addons",
Expand Down Expand Up @@ -62,10 +62,10 @@
},
"dependencies": {
"@storybook/icons": "^2.0.1",
"@walkeros/collector": "4.5.0",
"@walkeros/core": "4.5.0",
"@walkeros/web-core": "4.5.0",
"@walkeros/web-source-browser": "4.5.0"
"@walkeros/collector": "4.6.0",
"@walkeros/core": "4.6.0",
"@walkeros/web-core": "4.6.0",
"@walkeros/web-source-browser": "4.6.0"
},
"devDependencies": {
"@storybook/addon-docs": "^10.1.9",
Expand All @@ -74,7 +74,7 @@
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"@walkeros/config": "4.5.0",
"@walkeros/config": "4.6.0",
"auto": "^11.3.6",
"boxen": "^8.0.1",
"npm-run-all2": "^8.0.4",
Expand Down
13 changes: 13 additions & 0 deletions apps/walkerjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @walkeros/walker.js

## 4.6.0

### Patch Changes

- Updated dependencies [8802281]
- Updated dependencies [403ff6c]
- @walkeros/collector@4.6.0
- @walkeros/web-source-datalayer@4.6.0
- @walkeros/web-source-browser@4.6.0
- @walkeros/web-source-session@4.6.0
- @walkeros/core@4.6.0
- @walkeros/web-core@4.6.0

## 4.5.0

### Patch Changes
Expand Down
Loading