Skip to content

Commit

Permalink
Updated Deploy pipeline to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahend1 committed Dec 26, 2024
1 parent 374b51e commit 534a3e4
Showing 1 changed file with 37 additions and 32 deletions.
69 changes: 37 additions & 32 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
name: Deploy CI

on:
push:
branches:
- main
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 22

- name: Install vsce and open vsx
run: |
npm install -g @vscode/vsce
npm install -g ovsx
- name: yarn
run: yarn

- name: VSCE Publish
run: vsce publish --yarn -p $env:VSCE_PAT
env:
VSCE_PAT: ${{ secrets.VSCE_PRETTYXML }}

- name: Open VSX Publish
run: npx ovsx publish --yarn -p $env:OPEN_VSX_PAT
env:
OPEN_VSX_PAT: ${{ secrets.OPENVSX }}
deploy:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 22

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install vsce and open vsx
run: |
npm install -g @vscode/vsce
npm install -g ovsx
- name: pnpm
run: pnpm install

- name: VSCE Publish
run: vsce publish -p $env:VSCE_PAT
env:
VSCE_PAT: ${{ secrets.VSCE_PRETTYXML }}

- name: Open VSX Publish
run: npx ovsx publish -p $env:OPEN_VSX_PAT
env:
OPEN_VSX_PAT: ${{ secrets.OPENVSX }}

0 comments on commit 534a3e4

Please sign in to comment.