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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions .changeset/amplitude-plugin-descriptions.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/clarity-hotjar-step-example-settings.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/core-thenable-cache-wildcard-once.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/destination-demo-step-examples.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/flow-complete-warehouse-segment.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/frames-belong-to-a-flow.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/fullstory-capture-descriptions.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/gtag-script-src-schema.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/heap-settings-descriptions.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/matomo-ecommerce-examples.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/mixpanel-group-description.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/piwikpro-identified-consent-description.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/plausible-custom-event-example.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/posthog-project-default-descriptions.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/runner-release-check.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/segment-consent-cdn-descriptions.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/step-example-product-conditions.md

This file was deleted.

69 changes: 19 additions & 50 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,29 +181,16 @@ jobs:
if: inputs.images_only == ''
id: changesets
run: |
CHANGES=""
PACKAGES=""
RELEASE_NEEDED="false"

for file in .changeset/*.md; do
if [ -f "$file" ] && [ "$(basename $file)" != "README.md" ]; then
# Extract package names from frontmatter
PKGS=$(sed -n '/^---$/,/^---$/p' "$file" | grep -oE "'@?walkeros[^']*'" | tr -d "'" | sort -u)
# Extract package names from frontmatter, in single or double quotes
PKGS=$(sed -n '/^---$/,/^---$/p' "$file" | grep -oE "[\"']@?walkeros[^\"']*[\"']" | tr -d "\"'" | sort -u)
for pkg in $PKGS; do
# Add to packages list (dedupe later)
PACKAGES="$PACKAGES$pkg\n"
done

# Check if core or collector triggers release
if echo "$PKGS" | grep -qE "@walkeros/(core|collector)$"; then
RELEASE_NEEDED="true"
fi

# Capture description (text after frontmatter)
CONTENT=$(sed -n '/^---$/,/^---$/d; p' "$file" | sed '/^$/d')
if [ -n "$CONTENT" ]; then
CHANGES="$CHANGES$CONTENT\n\n"
fi
fi
done

Expand All @@ -221,13 +208,9 @@ jobs:
echo "No changesets found: recovery re-dispatch, nothing new to version."
fi

echo "changes<<EOF" >> $GITHUB_OUTPUT
echo -e "$CHANGES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "packages<<EOF" >> $GITHUB_OUTPUT
echo "$PACKAGES_FORMATTED" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "release_needed=$RELEASE_NEEDED" >> $GITHUB_OUTPUT

- name: Configure Git
if: inputs.images_only == ''
Expand Down Expand Up @@ -348,49 +331,35 @@ jobs:
npx changeset publish
fi

# Every stable release gets a GitHub release at its version commit (the
# published tree), never at a later branch tip. The notes come from the
# changesets that commit consumed (scripts/release-notes.sh, also used to
# create a missed release by hand). A re-dispatch whose release exists is
# a no-op; one whose HEAD is not the version commit fails.
- name: Create GitHub Release
if: |
inputs.images_only == '' &&
inputs.release_type == 'stable release' &&
steps.changesets.outputs.release_needed == 'true'
if: inputs.images_only == '' && inputs.release_type == 'stable release'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Changeset-authored text is read from the environment, never spliced
# into the script body, where it could break out into the shell.
CHANGES: ${{ steps.changesets.outputs.changes }}
PACKAGES: ${{ steps.changesets.outputs.packages }}
run: |
VERSION="v$(node -p "require('./packages/collector/package.json').version")"
# Tag the pushed version commit (the published tree), never the default branch tip.
TARGET="$(git rev-parse HEAD)"

printf '## Changes\n\n%s\n\n## Published Packages\n\n%s\n' \
"$CHANGES" "$PACKAGES" > /tmp/release-notes.md

# Idempotent: a re-dispatch that recovers a partial release must not
# die here just because the tag already landed.
if gh release view "$VERSION" >/dev/null 2>&1; then
echo "Release $VERSION already exists, refreshing notes"
if git fetch --quiet origin "refs/tags/$VERSION:refs/tags/$VERSION" && TAGGED="$(git rev-list -n1 "$VERSION")"; then
if [ "$TAGGED" != "$TARGET" ]; then
echo "::warning::Tag $VERSION is at $TAGGED, not at the version commit $TARGET. It is not moved; retag by hand if needed."
fi
else
echo "::warning::Could not read tag $VERSION to check it against the version commit $TARGET."
fi
gh release edit "$VERSION" --notes-file /tmp/release-notes.md
else
gh release create "$VERSION" \
--target "$TARGET" \
--title "walkerOS $VERSION" \
--notes-file /tmp/release-notes.md
echo "::notice::Release $VERSION already exists; nothing to release."
exit 0
fi
PREVIOUS="$(git show HEAD~1:packages/collector/package.json | node -p "JSON.parse(require('fs').readFileSync(0, 'utf8')).version")"
if [ "$VERSION" = "v$PREVIOUS" ]; then
echo "::error::HEAD is not the version commit of $VERSION. Create the release by hand at that commit (scripts/release-notes.sh <sha>)."
exit 1
fi
bash scripts/release-notes.sh HEAD > /tmp/release-notes.md
gh release create "$VERSION" --target "$(git rev-parse HEAD)" --title "walkerOS $VERSION" --notes-file /tmp/release-notes.md

- name: Comment on PR
if: inputs.images_only == '' && steps.changesets.outputs.packages != ''
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# As with the release notes: changeset-authored text stays in env.
# Changeset-authored text is read from the environment, never spliced
# into the script body, where it could break out into the shell.
PACKAGES: ${{ steps.changesets.outputs.packages }}
RELEASE_TYPE: ${{ inputs.release_type }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
branches: [main]
paths:
- 'website/**'
- 'apps/demos/storybook/**'
- '.github/workflows/website.yml'
pull_request:
types: [opened, synchronize, reopened, closed]
paths:
- 'website/**'
- 'apps/demos/storybook/**'
- '.github/workflows/website.yml'
workflow_dispatch:
inputs:
Expand Down
9 changes: 8 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@ logs/

# MDX docs are not formatted by any tool: both prettier and remark rewrite the
# `code={`...`}` template literals that carry the documentation snippets.
website/docs/**/*.mdx
website/docs/**/*.mdx

# walkerOS design system: design/ mirrors the Claude Design artifact file for
# file; src/design/index.ts and src/design/preview-css.ts are generated by
# src/design/generate.ts.
apps/explorer/design/
apps/explorer/src/design/index.ts
apps/explorer/src/design/preview-css.ts
8 changes: 8 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# walkeros

## 4.8.0

### Patch Changes

- Updated dependencies [5593d7b]
- Updated dependencies [5593d7b]
- @walkeros/cli@4.8.0

## 4.7.2

### 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.7.2",
"version": "4.8.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.7.2"
"@walkeros/cli": "4.8.0"
},
"devDependencies": {
"tsup": "^8.5.1",
Expand Down
9 changes: 8 additions & 1 deletion apps/demos/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# walkerOS demos

- [React](./react/)
- [Tagging Website](./tagging/)
- [Storybook](./storybook/): the shared demo kit and the demos built from it,
with the walkerOS Storybook addon
- Shop (`storybook/src/demos/shop`): the static tagging demo as a one-page
shop
- Media (`storybook/src/demos/media`): a one-page streaming site
- The demo pages at walkeros.io/demos/ (`storybook/src/site`), built from the
same package and copied into the website build
- [Tagging Website](./tagging/): the static tagging demo
15 changes: 15 additions & 0 deletions apps/demos/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# walkeros-demo-react

## 2.0.25

### Patch Changes

- Updated dependencies [7132619]
- Updated dependencies [5593d7b]
- Updated dependencies [421233d]
- Updated dependencies [5593d7b]
- @walkeros/core@4.8.0
- @walkeros/web-destination-gtag@4.8.0
- @walkeros/collector@4.8.0
- @walkeros/web-core@4.8.0
- @walkeros/web-destination-api@4.8.0
- @walkeros/web-source-browser@4.8.0

## 2.0.24

### Patch Changes
Expand Down
Loading
Loading