Skip to content

Commit

Permalink
✨ Add pipeline for publishing to marketplace
Browse files Browse the repository at this point in the history
Ref #2
  • Loading branch information
Roman Filatov committed Dec 20, 2024
1 parent a4b5ea2 commit 2d74684
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy extension

on:
release:
types: [published]

jobs:
publish-marketplace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Deploy to marketplace
run: npm run vscode:publish
env:
VSCE_PAT: ${{ secrets.VSCODE_SECRET }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"contributes": {},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode:publish": "vsce publish",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
Expand Down

0 comments on commit 2d74684

Please sign in to comment.