From 4bae50f7f3aa59c35af391c0893118724b92efd9 Mon Sep 17 00:00:00 2001 From: "hugues.verlin" Date: Sun, 10 Nov 2024 22:04:52 -0500 Subject: [PATCH] update CI --- .github/workflows/ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca7c1d6..c36b420 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,11 +22,10 @@ jobs: with: node-version: ${{ matrix.node-version }} - - run: corepack enable - - run: pnpm i --frozen-lockfile + - run: corepack enable && pnpm i --frozen-lockfile - run: pnpm compile - publish: + publish-vscode-openvsx: needs: build runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' @@ -39,8 +38,7 @@ jobs: with: node-version: '22.x' - - run: corepack enable - - run: pnpm i --frozen-lockfile + - run: corepack enable && pnpm i --frozen-lockfile - run: npm run package - name: Publish to Open VSX Registry @@ -48,6 +46,23 @@ jobs: with: pat: ${{ secrets.OPEN_VSX_TOKEN }} dependencies: false + + publish-vscode-marketplace: + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + + - run: corepack enable && pnpm i --frozen-lockfile + - run: npm run package + - name: Publish to Visual Studio Marketplace uses: HaaLeo/publish-vscode-extension@v1 with: