File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,8 @@ jobs:
174174 - name : Install Dependencies
175175 run : jf npm ci
176176
177- - name : Set Publish Data
178- id : set-publish-data
179- run : |
180- VERSION=$(jq -r '.version' './package.json')
181- CLI_NPM_PACKAGE_NAME="hiero-ledger-hiero-cli-${VERSION}.tgz"
182- echo "artifact-name=${CLI_NPM_PACKAGE_NAME}" >> $GITHUB_OUTPUT
177+ - name : Compile Code
178+ run : npm run build
183179
184180 - name : Publish Semantic Release
185181 env :
@@ -193,7 +189,25 @@ jobs:
193189 run :
194190 npx semantic-release
195191
196- # Upload the artifact
192+ - name : Update Version for Dry Run
193+ if : ${{ github.event.inputs.dry-run-enabled == 'true' }}
194+ run : |
195+ npm version ${{ needs.prepare-release.outputs.version }} --no-git-tag-version
196+
197+ - name : Set Publish Data
198+ id : set-publish-data
199+ run : |
200+ VERSION=$(jq -r '.version' './package.json')
201+ CLI_NPM_PACKAGE_NAME="hiero-ledger-hiero-cli-${VERSION}.tgz"
202+ echo "artifact-name=${CLI_NPM_PACKAGE_NAME}" >> $GITHUB_OUTPUT
203+
204+ # Needed since semantic release dry-run won't pack the tarball
205+ - name : Pack for Dry Run
206+ if : ${{ github.event.inputs.dry-run-enabled == 'true' }}
207+ run : |
208+ npm pack --pack-destination ./dist
209+
210+ # Upload the artifact
197211 - name : Upload Hiero CLI Package Artifact
198212 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
199213 with :
You can’t perform that action at this time.
0 commit comments