Skip to content

Commit 34c3e1f

Browse files
authored
update release
add info-from-package-json
1 parent bc11331 commit 34c3e1f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
- uses: actions/checkout@v2
3636
- run: npm install
3737

38-
- name: Current NPM Package Version
39-
- uses: justincy/npm-version-action@2.1.0
40-
id: info
41-
- run: echo '${{ steps.info.outputs.version }}'
42-
38+
#- name: Current NPM Package Version
39+
#- uses: justincy/npm-version-action@2.1.0
40+
# id: info
41+
#- run: echo '${{ steps.info.outputs.version }}'
42+
43+
- name: Retrieve information from package.json
44+
uses: myrotvorets/info-from-package-json-action@1.0.0
45+
id: ver
46+
4347
- uses: lannonbr/vsce-action@master
4448
with:
4549
args: "package"
@@ -62,6 +66,6 @@ jobs:
6266
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6367
with:
6468
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
65-
asset_path: ./vscode-nushell-lang-${{steps.info.outputs.version}}.vsix # Need to get this version number dynamically
66-
asset_name: vscode-nushell-lang-${{steps.info.outputs.version}}.vsix
69+
asset_path: ./vscode-nushell-lang-${{steps.ver.outputs.version}}.vsix # Need to get this version number dynamically
70+
asset_name: vscode-nushell-lang-${{steps.ver.outputs.version}}.vsix
6771
asset_content_type: application/vsix

0 commit comments

Comments
 (0)