Publish Sirji VS Code Extension #2
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: Publish Sirji VS Code Extension | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to release from' | |
required: true | |
default: 'main' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Change directory to extension | |
run: cd sirji/vscode-extension && pwd | |
- name: Install VSCE | |
run: npm install -g vsce | |
- name: Install dependencies | |
run: npm install | |
- name: Compile and Copy Files | |
run: npm run vscode:prepublish | |
- name: Prepack Extension | |
run: npm run prepack | |
- name: Package Extension | |
run: npm run package | |
# - name: Publish Extension | |
# run: npm run publish -- -p ${{ secrets.VS_MARKETPLACE_PAT }} | |
# env: | |
# VS_MARKETPLACE_PAT: ${{ secrets.VS_MARKETPLACE_PAT }} |