Skip to content

Commit dd051d6

Browse files
authored
Set release version to package.json (#169)
Update the bundle package.json with the real release tag before packing into release artifact
1 parent 94b21c7 commit dd051d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/tagged_release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868

6969
# This should be removed as soon as we go towards nodejs package repository
7070
- name: Pack Project as tgz
71-
run: cd dist/libs/schematic && npm pack && mv esmf-semantic-ui-schematics-1.0.0.tgz ../../../esmf-semantic-ui-schematics-${{ github.event.inputs.release_version }}.tgz
71+
run: |
72+
cd dist/libs/schematic
73+
sed -i 's/"version": "1.0.0"/"version": "${{ github.event.inputs.release_version }}"/' package.json
74+
npm pack
75+
mv esmf-semantic-ui-schematics-${{ github.event.inputs.release_version }}.tgz ../../../
7276
7377
- name: "Create Github release (full)"
7478
if: ${{ !contains( github.event.inputs.release_version, '-rc' ) }}

0 commit comments

Comments
 (0)