Skip to content

Commit

Permalink
My attempt on automatically publishing to VSCode registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkavrba committed Jul 6, 2024
1 parent 1b2e90c commit 83d504b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Publish VS Code extension"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm install

- name: Login to VSCE
run: echo "${{ secrets.MARKETPLACE_TOKEN }}" | npx vsce login jirkavrba

- name: Build package
run: npx vsce package

- name: Publish package
run: npx vsce publish
on:
push:
branches:
- main
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "subway-surfers",
"displayName": "Subway Surfers",
"description": "The Industrial Revolution and its consequences have been a disaster for the human race.",
"version": "1.1.2",
"version": "1.1.3",
"engines": {
"vscode": "^1.69.0"
},
Expand Down Expand Up @@ -65,7 +65,7 @@
},
"pricing": "Free",
"scripts": {
"vscode:prepublish": "yarn run package",
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
Expand Down

0 comments on commit 83d504b

Please sign in to comment.