@@ -176,11 +176,17 @@ jobs:
176176 VERSION="${CURRENT}-wasm.${COMPACT}"
177177 echo "version=$VERSION" >> "$GITHUB_OUTPUT"
178178
179- - name : Inject version into dist package.json
179+ - name : Inject version and dev name into dist package.json
180+ # Dev builds are published under a distinct name
181+ # (`@php-wasm/dev-<suffix>`) so they're visibly segregated from
182+ # the production `@php-wasm/<suffix>` packages on npm. The
183+ # source package.json is untouched — only the dist copy is
184+ # renamed for publish.
180185 run : |
181186 node -e "
182187 const pkgPath = 'dist/packages/php-wasm/${{ matrix.platform }}-builds/${{ matrix.phpVersionSlug }}/package.json';
183188 const pkg = JSON.parse(require('fs').readFileSync(pkgPath, 'utf8'));
189+ pkg.name = '@php-wasm/dev-${{ matrix.packageSuffix }}';
184190 pkg.version = '${{ steps.version.outputs.version }}';
185191 require('fs').writeFileSync(pkgPath, JSON.stringify(pkg, null, '\t') + '\n');
186192 "
@@ -195,7 +201,7 @@ jobs:
195201 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
196202
197203 - name : Output published version
198- run : echo "Published @php-wasm/${{ matrix.packageSuffix }}@${{ steps.version.outputs.version }}"
204+ run : echo "Published @php-wasm/dev- ${{ matrix.packageSuffix }}@${{ steps.version.outputs.version }}"
199205
200206 post-comment :
201207 needs : [read-matrix, publish]
@@ -213,7 +219,7 @@ jobs:
213219 const lines = matrix.include.map(item => {
214220 const compact = item.requestedAt.replace(/[-:.Z]/g, '').slice(0, 15);
215221 const version = `${lernaVersion}-wasm.${compact}`;
216- return `- \`@php-wasm/${item.packageSuffix}@${version}\``;
222+ return `- \`@php-wasm/dev- ${item.packageSuffix}@${version}\``;
217223 });
218224 const body = [
219225 '### PHP WASM packages published',
0 commit comments