Skip to content

Commit e20c772

Browse files
committed
chore(build): [skip release] use semantic release output in later build steps
1 parent 053d6ec commit e20c772

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,20 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929

30-
- name: get-npm-version
31-
id: package-version
32-
if: steps.semantic-release.outputs.new_release_published == 'true'
33-
uses: martinbeentjes/npm-get-version-action@master
34-
with:
35-
path: UnityRSocket/Assets/Viglucci/UnityRSocket
36-
3730
- name: Zip
3831
if: steps.semantic-release.outputs.new_release_published == 'true'
3932
uses: papeloto/action-zip@v1
4033
with:
4134
files: UnityRSocket/Assets/Viglucci
42-
dest: out/UnityRSocket-${{ steps.package-version.outputs.current-version}}.zip
35+
dest: out/UnityRSocket-${{ steps.semantic-release.outputs.new_release_version}}.zip
4336

4437
- name: Attach artifacts to release
4538
if: steps.semantic-release.outputs.new_release_published == 'true'
4639
uses: svenstaro/upload-release-action@v2
4740
with:
4841
repo_token: ${{ secrets.GITHUB_TOKEN }}
49-
file: out/UnityRSocket-${{ steps.package-version.outputs.current-version}}.zip
42+
file: out/UnityRSocket-${{ steps.semantic-release.outputs.new_release_version}}.zip
5043
file_glob: true
5144
overwrite: true
52-
tag: v${{ steps.package-version.outputs.current-version}}
45+
body: ${{ steps.semantic-release.outputs.new_release_notes}}
46+
tag: v${{ steps.semantic-release.outputs.new_release_version}}

0 commit comments

Comments
 (0)