Skip to content

Commit 1420b6f

Browse files
committed
update publishing for nightly
1 parent 56f7d38 commit 1420b6f

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,18 @@ jobs:
7575

7676
- name: Create snapshot versions
7777
if: steps.release-type.outputs.type == 'nightly'
78-
run: pnpm changeset version --snapshot nightly
78+
run: |
79+
SNAPSHOT="0.0.0-nightly.$(date +%Y%m%d%H%M%S)"
80+
for pkg in packages/b2c-tooling-sdk packages/b2c-cli packages/b2c-dx-mcp; do
81+
node -e "
82+
const fs = require('fs');
83+
const path = '$pkg/package.json';
84+
const pkg = JSON.parse(fs.readFileSync(path));
85+
pkg.version = '$SNAPSHOT';
86+
fs.writeFileSync(path, JSON.stringify(pkg, null, 2) + '\n');
87+
"
88+
done
89+
echo "Set snapshot version: $SNAPSHOT"
7990
8091
- name: Build packages
8192
run: pnpm run build

PUBLISHING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ When making changes that should be released:
7979
pnpm changeset
8080
```
8181

82-
2. **Select the change type**:
83-
- `patch` - Bug fixes, documentation updates
84-
- `minor` - New features, non-breaking changes
85-
- `major` - Breaking changes
82+
2. **Select the change type** (pre-1.0):
83+
- `patch` - Bug fixes, documentation updates, new features
84+
- `minor` - New features, major improvements
85+
- `major` - Breaking changes: 1.0 --- initial GA release
8686

8787
3. **Write a summary** - This appears in the changelog
8888

0 commit comments

Comments
 (0)