Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Nov 11, 2024
1 parent 5d879e6 commit 4bae50f
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -39,15 +38,31 @@ 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
uses: HaaLeo/publish-vscode-extension@v1
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:
Expand Down

0 comments on commit 4bae50f

Please sign in to comment.