File tree Expand file tree Collapse file tree 6 files changed +75
-6
lines changed
Expand file tree Collapse file tree 6 files changed +75
-6
lines changed Original file line number Diff line number Diff line change 2828 echo "Publishing version: $VERSION"
2929
3030 - name : Update package versions
31- run : node update-versions.js ${{ steps.get_version.outputs.version }}
31+ run : node scripts/ update-versions.js ${{ steps.get_version.outputs.version }}
3232
3333 - name : Install dependencies
3434 run : npm ci
8282 echo "Publishing version: $VERSION"
8383
8484 - name : Update package versions
85- run : node update-versions.js ${{ steps.get_version.outputs.version }}
85+ run : node scripts/ update-versions.js ${{ steps.get_version.outputs.version }}
8686
8787 - name : Generate SDKs
8888 run : |
Original file line number Diff line number Diff line change 1+ # Scripts
2+
3+ This directory contains utility scripts for the PMXT project.
4+
5+ ## Available Scripts
6+
7+ ### ` release.sh `
8+ Release automation script that creates and pushes version tags.
9+
10+ ** Usage:**
11+ ``` bash
12+ ./scripts/release.sh < version>
13+ ```
14+
15+ ** Example:**
16+ ``` bash
17+ ./scripts/release.sh 0.5.0
18+ ```
19+
20+ ** What it does:**
21+ 1 . Validates version format
22+ 2 . Creates a git tag ` v<version> `
23+ 3 . Pushes the tag to GitHub
24+ 4 . Triggers GitHub Actions to build and publish all packages
25+
26+ ---
27+
28+ ### ` update-versions.js `
29+ Node.js script to update version numbers across all package files.
30+
31+ ** Usage:**
32+ ``` bash
33+ node scripts/update-versions.js < version>
34+ ```
35+
36+ ** What it updates:**
37+ - ` core/package.json `
38+ - ` sdks/javascript/package.json `
39+ - ` sdks/python/pyproject.toml `
40+
41+ ---
42+
43+ ### ` test-publish-local.sh `
44+ Test script for validating the publish workflow locally before pushing tags.
45+
46+ ** Usage:**
47+ ``` bash
48+ ./scripts/test-publish-local.sh
49+ ```
50+
51+ ** What it does:**
52+ 1 . Builds all packages
53+ 2 . Starts the PMXT server
54+ 3 . Runs all SDK tests
55+ 4 . Validates everything works before release
56+
57+ ---
58+
59+ ### ` test-version-update.sh `
60+ Test script for validating the version update functionality.
61+
62+ ** Usage:**
63+ ``` bash
64+ ./scripts/test-version-update.sh
65+ ```
66+
67+ ** What it does:**
68+ 1 . Tests version number extraction from git tags
69+ 2 . Validates that ` update-versions.js ` correctly updates all package files
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Release script for PMXT
4- # Usage: ./release.sh <version>
5- # Example: ./release.sh 0.5.0
4+ # Usage: ./scripts/ release.sh <version>
5+ # Example: ./scripts/ release.sh 0.5.0
66
77set -e
88
99if [ -z " $1 " ]; then
1010 echo " [ERROR] Error: Version number required"
11- echo " Usage: ./release.sh <version>"
12- echo " Example: ./release.sh 0.5.0"
11+ echo " Usage: ./scripts/ release.sh <version>"
12+ echo " Example: ./scripts/ release.sh 0.5.0"
1313 exit 1
1414fi
1515
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments