From 297b738b125c08be4d7ec0b7842501341aa15970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Bene=C5=A1?= Date: Tue, 17 Sep 2024 10:58:02 +0200 Subject: [PATCH] Refactor ci.yml --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7526739..93bf400 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,18 +2,24 @@ name: Continuous Integration on: [push] +env: + NODE_VERSION: '18.x' + jobs: build-vscode: name: Build the VSCode extension runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install Node.js - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + + - name: Set up NodeJS ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: ${{ env.NODE_VERSION }} + - run: npm install -g typescript - run: npm install -g vsce - run: npm install + - name: Package VSCode extension into .vsix file run: vsce package