Skip to content

Commit

Permalink
fix: github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainChen committed Apr 28, 2024
1 parent 8c541e1 commit bdd0bbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'

Expand All @@ -31,12 +31,15 @@ jobs:
- name: Build
run: npm run build

- name: Package
run: npm run package

- name: Get version from package.json
id: package
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: vscode-json-v${{ steps.package.outputs.version }}
files: json-${{ steps.package.outputs.version }}.vsix

0 comments on commit bdd0bbe

Please sign in to comment.