1- name : Gateway Release PR
1+ name : Satellite Release PR
22on :
33 workflow_dispatch :
44 inputs :
@@ -45,67 +45,61 @@ jobs:
4545 npm install --no-optional
4646 }
4747
48- - name : Gateway Build Test
49- working-directory : services/gateway
48+ - name : Satellite Build Test
49+ working-directory : services/satellite
5050 run : npm run build
5151
52- - name : Gateway Unit Tests
53- working-directory : services/gateway
54- run : npm run test:unit || echo "Tests not implemented yet, skipping"
55-
56- - name : Gateway Lint
57- working-directory : services/gateway
52+ - name : Satellite Lint
53+ working-directory : services/satellite
5854 run : npm run lint
55+
56+ - name : Check for console.log in satellite
57+ working-directory : services/satellite
58+ run : npm run check:no-console
5959
6060 - name : Prepare release
61- working-directory : services/gateway
61+ working-directory : services/satellite
6262 env :
6363 GITHUB_TOKEN : ${{ secrets.APP_INSTALLATION_TOKEN }}
6464 BETA_ARG : ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
6565 TYPE_ARG : ${{ github.event.inputs.type != 'patch' && format('--increment={0}', github.event.inputs.type) || '' }}
6666 run : |
6767 # Let release-it handle version detection and incrementing properly
68- npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github --no-git.requireCleanWorkingDir $BETA_ARG
69-
70- - name : Stage package.json changes
71- working-directory : services/gateway
72- run : |
73- git add package.json CHANGELOG.md
68+ npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
7469
7570 - name : Update version.ts file
76- working-directory : services/gateway
71+ working-directory : services/satellite
7772 run : |
78- node scripts/update-version.js || echo "Version update script not found, skipping"
79- if [ -f src/config/version.ts ]; then
80- git add src/config/version.ts
81- fi
73+ node scripts/update-version.js
74+ git add src/config/version.ts
8275
8376 - name : get-npm-version
8477 id : package-version
8578 uses : martinbeentjes/npm-get-version-action@main
8679 with :
87- path : services/gateway
80+ path : services/satellite
8881
8982 - name : Extract release notes
9083 id : extract-release-notes
84+ working-directory : services/satellite
9185 run : |
9286 VERSION=$(cat package.json | grep '"version"' | cut -d'"' -f4)
9387 echo "Extracting release notes for version $VERSION"
9488
95- # Find the latest gateway tag
96- LATEST_TAG=$(git describe --tags --match=gateway -v* --abbrev=0 2>/dev/null || echo "")
89+ # Find the latest satellite tag
90+ LATEST_TAG=$(git describe --tags --match=satellite -v* --abbrev=0 2>/dev/null || echo "")
9791
9892 if [ -z "$LATEST_TAG" ]; then
99- echo "No previous gateway tag found, using all commits"
100- GATEWAY_COMMITS =$(git log --oneline --grep="(gateway )" --grep="(all)" --grep-or)
93+ echo "No previous satellite tag found, using all commits"
94+ SATELLITE_COMMITS =$(git log --oneline --grep="(satellite )" --grep="(all)" --grep-or)
10195 else
10296 echo "Using commits since $LATEST_TAG"
103- # Get gateway and all scoped commits since last release
104- GATEWAY_COMMITS =$(git log ${LATEST_TAG}..HEAD --oneline --grep="(gateway )")
97+ # Get satellite and all scoped commits since last release
98+ SATELLITE_COMMITS =$(git log ${LATEST_TAG}..HEAD --oneline --grep="(satellite )")
10599 ALL_COMMITS=$(git log ${LATEST_TAG}..HEAD --oneline --grep="(all)")
106100
107101 # Combine and format the commits
108- COMBINED_COMMITS=$(echo -e "$GATEWAY_COMMITS \n$ALL_COMMITS" | sort -u | grep -v "^$")
102+ COMBINED_COMMITS=$(echo -e "$SATELLITE_COMMITS \n$ALL_COMMITS" | sort -u | grep -v "^$")
109103 fi
110104
111105 # Format commits for release notes
@@ -129,44 +123,42 @@ jobs:
129123
130124 echo "Release notes extracted:"
131125 echo -e "$RELEASE_NOTES"
132- working-directory : services/gateway
133126
134127 - name : Create pull request
135128 uses : peter-evans/create-pull-request@v7
136129 id : cpr
137130 with :
138131 token : ${{ secrets.APP_INSTALLATION_TOKEN }}
139- branch : gateway -release
132+ branch : satellite -release
140133 delete-branch : true
141- commit-message : ' chore(gateway ): release v${{ steps.package-version.outputs.current-version}}'
142- title : ' [Gateway Release] v${{ steps.package-version.outputs.current-version}}'
134+ commit-message : ' chore(satellite ): release v${{ steps.package-version.outputs.current-version}}'
135+ title : ' [Satellite Release] v${{ steps.package-version.outputs.current-version}}'
143136 body : |
144- ## Gateway Release v${{ steps.package-version.outputs.current-version}}
137+ ## Satellite Release v${{ steps.package-version.outputs.current-version}}
145138
146- This PR prepares a new gateway release.
139+ This PR prepares a new satellite release.
147140
148141 When merged, this will:
149142 1. Create a release tag
150- 2. Build and publish the npm package to @deploystack/gateway
143+ 2. Build and publish a multi-architecture Docker image to Docker Hub
151144
152- The npm package will be available at:
153- - `@ deploystack/gateway@ latest`
154- - `@ deploystack/gateway@ v${{ steps.package-version.outputs.current-version}}`
145+ The Docker image will be available at:
146+ - `deploystack/satellite: latest`
147+ - `deploystack/satellite: v${{ steps.package-version.outputs.current-version}}`
155148
156- ### Installation
157- ```bash
158- npm install -g @deploystack/gateway@${{ steps.package-version.outputs.current-version}}
159- ```
149+ ### Supported Architectures
150+ - `linux/amd64` (Intel/AMD)
151+ - `linux/arm64` (Apple Silicon, AWS Graviton)
160152
161153 ## Release notes:
162154 ${{ steps.extract-release-notes.outputs.release_notes }}
163155 labels : |
164- gateway
156+ satellite
165157 release
166158 automated pr
167159 draft : false
168160
169161 - name : Show PR link
170162 if : ${{ steps.cpr.outputs.pull-request-url }}
171163 run : |
172- echo "Gateway Release v${{ steps.package-version.outputs.current-version}}' pull request - ${{ steps.cpr.outputs.pull-request-url }}"
164+ echo "Satellite Release v${{ steps.package-version.outputs.current-version}}' pull request - ${{ steps.cpr.outputs.pull-request-url }}"
0 commit comments