Skip to content

Commit c39c1e4

Browse files
Merge pull request #577 from elbwalker/0.6.0
0.6.0
2 parents 37b14b7 + 790d4a8 commit c39c1e4

File tree

143 files changed

+2648
-34818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+2648
-34818
lines changed

.changeset/config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": []
10+
"ignore": [],
11+
"snapshot": {
12+
"useCalculatedVersion": true,
13+
"prereleaseTemplate": "{tag}-{timestamp}"
14+
}
1115
}

.github/workflows/docker.yml

Lines changed: 0 additions & 127 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 80 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ on:
1111
- 'pre-release (next)'
1212
- 'stable release'
1313

14+
concurrency:
15+
group: release
16+
cancel-in-progress: true
17+
1418
jobs:
1519
release:
1620
runs-on: ubuntu-latest
1721
permissions:
1822
contents: write
1923
pull-requests: write
24+
env:
25+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
26+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
2027
steps:
2128
- name: Checkout
2229
uses: actions/checkout@v4
@@ -26,7 +33,7 @@ jobs:
2633
- name: Setup Node.js
2734
uses: actions/setup-node@v4
2835
with:
29-
node-version: '20'
36+
node-version: '22'
3037
registry-url: 'https://registry.npmjs.org'
3138

3239
- name: Install dependencies
@@ -44,45 +51,90 @@ jobs:
4451
- name: Test
4552
run: npm run test
4653

54+
- name: Version packages (stable)
55+
if: inputs.release_type == 'stable release'
56+
run: |
57+
# Exit pre-release mode if active; skip if not in pre-release
58+
if [ -f ".changeset/pre.json" ]; then
59+
npx changeset pre exit
60+
else
61+
echo "Not in pre-release mode, skipping 'pre exit'"
62+
fi
63+
npx changeset version
64+
4765
- name: Configure Git
4866
run: |
4967
git config user.name "github-actions[bot]"
5068
git config user.email "github-actions[bot]@users.noreply.github.com"
5169
5270
- name: Version packages (pre-release)
5371
if: inputs.release_type == 'pre-release (next)'
54-
run: |
55-
npx changeset pre enter next || true
56-
npx changeset version
57-
58-
- name: Version packages (stable)
59-
if: inputs.release_type == 'stable release'
60-
run: |
61-
npx changeset pre exit || true
62-
npx changeset version
72+
run: npx changeset version --snapshot next
6373

6474
- name: Update lock file
6575
run: npm install --package-lock-only
6676

6777
- name: Publish to npm
6878
id: publish
6979
run: |
80+
set +e
7081
OUTPUT=$(npx changeset publish 2>&1)
82+
EXIT_CODE=$?
7183
echo "$OUTPUT"
84+
set -e
85+
if [ $EXIT_CODE -ne 0 ]; then
86+
echo "::error::Changeset publish failed with exit code $EXIT_CODE"
87+
exit $EXIT_CODE
88+
fi
7289
# Extract published packages for PR comment
73-
PUBLISHED=$(echo "$OUTPUT" | grep -E "^@walkeros/|^walkeros" | head -20 || true)
90+
PUBLISHED=$(echo "$OUTPUT" | grep -E "^@walkeros/|^walkeros" | head -20 | sed 's/^/- /' || true)
7491
echo "published<<EOF" >> $GITHUB_OUTPUT
7592
echo "$PUBLISHED" >> $GITHUB_OUTPUT
7693
echo "EOF" >> $GITHUB_OUTPUT
7794
env:
78-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
95+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7996

80-
- name: Commit version changes
97+
- name: Commit version changes (stable only)
98+
if: inputs.release_type == 'stable release'
8199
run: |
82100
git add -A
83101
git commit -m "chore: version packages" || echo "No changes to commit"
84102
git push
85103
104+
# Docker image publishing
105+
- name: Get CLI version
106+
id: versions
107+
run: |
108+
CLI_VERSION=$(node -p "require('./packages/cli/package.json').version")
109+
echo "cli=$CLI_VERSION" >> $GITHUB_OUTPUT
110+
111+
- name: Check if Flow image exists
112+
id: check-flow
113+
run: |
114+
if docker manifest inspect walkeros/flow:${{ steps.versions.outputs.cli }} 2>/dev/null; then
115+
echo "exists=true" >> $GITHUB_OUTPUT
116+
else
117+
echo "exists=false" >> $GITHUB_OUTPUT
118+
fi
119+
120+
- name: Login to Docker Hub
121+
if: steps.check-flow.outputs.exists == 'false'
122+
uses: docker/login-action@v3
123+
with:
124+
username: ${{ secrets.DOCKERHUB_USERNAME }}
125+
password: ${{ secrets.DOCKERHUB_TOKEN }}
126+
127+
- name: Build and push Flow image
128+
if: steps.check-flow.outputs.exists == 'false'
129+
uses: docker/build-push-action@v6
130+
with:
131+
context: ./packages/cli
132+
file: ./packages/cli/Dockerfile
133+
push: true
134+
tags: |
135+
walkeros/flow:${{ steps.versions.outputs.cli }}
136+
walkeros/flow:${{ inputs.release_type == 'stable release' && 'latest' || 'next' }}
137+
86138
- name: Comment on PR
87139
if: steps.publish.outputs.published != ''
88140
env:
@@ -95,17 +147,31 @@ jobs:
95147
EMOJI="📦"
96148
TITLE="Pre-release published (next)"
97149
INSTALL_TAG="@next"
150+
DOCKER_TAG=":next"
98151
else
99152
EMOJI="🚀"
100153
TITLE="Stable release published"
101154
INSTALL_TAG="@latest"
155+
DOCKER_TAG=":latest"
156+
fi
157+
158+
# Build Docker section if flow image was published
159+
DOCKER_SECTION=""
160+
if [ "${{ steps.check-flow.outputs.exists }}" = "false" ]; then
161+
DOCKER_SECTION="
162+
163+
🐳 **Docker image published**
164+
- walkeros/flow:${{ steps.versions.outputs.cli }} ($DOCKER_TAG)
165+
166+
Docker: \`docker pull walkeros/flow$DOCKER_TAG\`"
102167
fi
103168
104169
BODY="$EMOJI **$TITLE**
105170
171+
**Packages**
106172
${{ steps.publish.outputs.published }}
107173
108-
Install: \`npm i @walkeros/core$INSTALL_TAG\`"
174+
Install: \`npm i @walkeros/core$INSTALL_TAG\`$DOCKER_SECTION"
109175
110176
gh pr comment "$PR_NUMBER" --body "$BODY"
111177
echo "Commented on PR #$PR_NUMBER"

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
2+
loglevel=error

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/cli/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# walkeros
22

3+
## 0.5.1-next.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [71b615f]
8+
- @walkeros/cli@0.5.1-next.1
9+
10+
## 0.5.1-next.0
11+
12+
### Patch Changes
13+
14+
- @walkeros/cli@0.5.1-next.0
15+
316
## 0.5.0
417

518
### Minor Changes

apps/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "walkeros",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "walkerOS CLI - Bundle and deploy walkerOS components",
55
"license": "MIT",
66
"type": "module",
@@ -18,7 +18,7 @@
1818
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
1919
},
2020
"dependencies": {
21-
"@walkeros/cli": "0.5.0"
21+
"@walkeros/cli": "0.6.0"
2222
},
2323
"devDependencies": {
2424
"tsup": "^8.5.1",

apps/demos/destination/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @walkeros/destination-demo
22

3+
## 0.0.0-next-20251219153324
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [5163b01]
8+
- @walkeros/core@0.0.0-next-20251219153324
9+
10+
## 0.5.1-next.0
11+
12+
### Patch Changes
13+
14+
- Updated dependencies [5163b01]
15+
- @walkeros/core@0.5.1-next.0
16+
317
## 0.5.0
418

519
### Minor Changes

apps/demos/destination/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@walkeros/destination-demo",
33
"description": "Demo destination for walkerOS - logs events to console",
4-
"version": "0.5.0",
4+
"version": "0.6.0",
55
"license": "MIT",
66
"main": "./dist/index.js",
77
"module": "./dist/index.mjs",
@@ -24,7 +24,7 @@
2424
"test": "jest"
2525
},
2626
"dependencies": {
27-
"@walkeros/core": "0.5.0"
27+
"@walkeros/core": "0.6.0"
2828
},
2929
"repository": {
3030
"url": "git+https://github.com/elbwalker/walkerOS.git",

0 commit comments

Comments
 (0)