Replace deprecated task in GitHub Actions file to fix building #337
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create VSIX | |
on: push | |
jobs: | |
Build-VSIX: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup Node js | |
uses: actions/setup-node@v2 | |
with: | |
cache: "npm" | |
- name: Install dependencies | |
run: | | |
npm install | |
npm install -g vsce | |
npm install webpack | |
- name: Switch to use webpack | |
run: npm run enableWebpack | |
- name: Create vsix | |
run: vsce package | |
- name: Read version from package.json | |
uses: culshaw/read-package-node-version-actions@v1 | |
id: package-node-version | |
- name: Upload VSIX | |
uses: actions/upload-artifact@v4 | |
with: | |
path: vdm-vscode-${{ steps.package-node-version.outputs.version }}.vsix | |
name: vdm-vscode-${{ steps.package-node-version.outputs.version }}.vsix |