From 94fa800ef4043c2a51c72ea397150a75064afdc1 Mon Sep 17 00:00:00 2001 From: tal7aouy Date: Wed, 20 Dec 2023 22:55:25 +0100 Subject: [PATCH] deploy --- .github/workflows/deploy.yml | 45 +++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8963404..4f82107 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,30 +3,33 @@ name: Deploy VSCode Extension on: push: branches: - - main + - main jobs: deploy: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '16' - - - name: Install dependencies - run: npm install - - - name: Build extension - run: npm run build - - - name: Deploy extension - run: | - vsce package - vsce publish -p ${{ secrets.VSCE_TOKEN }} - env: - VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "16" + + - name: Install dependencies + run: npm install + + - name: Install vsce + run: npm install -g vsce + + - name: Build extension + run: npm run build + + - name: Deploy extension + run: | + vsce package + vsce publish -p ${{ secrets.VSCE_TOKEN }} + env: + VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}