use pnpm #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Publish | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
jobs: | |
publish: | |
name: Publish Extension | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
if: github.event.pull_request.merged == true | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- name: Install Node v16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.VSCE_PAT }} | |
extensionFile: ${{ needs.build.outputs.vsixPath }} | |
registryUrl: https://marketplace.visualstudio.com |