File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,16 @@ jobs:
2626 if : github.event.inputs.tag == 'nightly'
2727 working-directory : packages/sdk
2828 run : |
29- CURRENT_VERSION=$(npm pkg get version | tr -d '"')
30- NIGHTLY_VERSION="${CURRENT_VERSION}-nightly-${GITHUB_SHA::7}"
31- echo "NIGHTLY_VERSION=${NIGHTLY_VERSION}" >> $GITHUB_OUTPUT
29+ // if nightly tag
30+ if [ "${{ github.event.inputs.tag }}" == "nightly" ]; then
31+ CURRENT_VERSION=$(npm pkg get version | tr -d '"')
32+ NIGHTLY_VERSION="${CURRENT_VERSION}-nightly-${GITHUB_SHA::7}"
33+ echo "VERSION=${NIGHTLY_VERSION}" >> $GITHUB_OUTPUT
34+ else
35+ echo "VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_OUTPUT
36+ fi
3237 outputs :
33- NIGHTLY_VERSION : ${{ steps.set-publish-version.outputs.NIGHTLY_VERSION }}
38+ NIGHTLY_VERSION : ${{ steps.set-publish-version.outputs.VERSION }}
3439
3540 publish-npm :
3641 uses : iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm
4247 environment : ${{ github.event.inputs.target }}
4348 working-directory : packages/sdk
4449 tag : ${{ github.event.inputs.tag }}
45- version : ${{ needs.set-publish-version.outputs.NIGHTLY_VERSION }}
50+ version : ${{ needs.set-publish-version.outputs.VERSION }}
4651 install-command : |
4752 npm ci
4853 npm run codegen
You can’t perform that action at this time.
0 commit comments