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: