Skip to content

Commit 7e75718

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents eae69fa + bb878e2 commit 7e75718

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,38 @@ jobs:
3434
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3535
- uses: actions/checkout@v2
3636
- run: npm install
37+
38+
#- name: Current NPM Package Version
39+
#- uses: justincy/[email protected]
40+
# id: info
41+
#- run: echo '${{ steps.info.outputs.version }}'
42+
43+
- name: Retrieve information from package.json
44+
uses: myrotvorets/[email protected]
45+
id: ver
46+
3747
- uses: lannonbr/vsce-action@master
3848
with:
3949
args: "package"
50+
4051
- name: Create Release
4152
id: create_release
4253
uses: actions/create-release@v1
4354
env:
4455
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4556
with:
4657
tag_name: ${{ github.ref }}
47-
release_name: Release ${{ github.ref }}
58+
release_name: ${{ steps.ver.outputs.packageVersion }} Release
4859
draft: true
49-
prerelease: false
60+
prerelease: true
61+
5062
- name: Upload Release Asset
5163
id: upload-release-asset
5264
uses: actions/upload-release-asset@v1
5365
env:
5466
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5567
with:
5668
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
57-
asset_path: ./vscode-nushell-lang-0.0.5.vsix # Need to get this version number dynamically
58-
asset_name: vscode-nushell-lang-0.0.5.vsix
69+
asset_path: ./vscode-nushell-lang-${{ steps.ver.outputs.packageVersion }}.vsix # Need to get this version number dynamically
70+
asset_name: vscode-nushell-lang-${{ steps.ver.outputs.packageVersion }}.vsix
5971
asset_content_type: application/vsix

0 commit comments

Comments
 (0)