Skip to content

Commit 1e67107

Browse files
committed
Update: Updated CI/CD Script
1 parent 9bc48e7 commit 1e67107

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/release-extension.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Package extension
4040
run: pnpm vscode:prepublish && pnpm vsce:package
4141

42-
- name: Publish to Marketplace
42+
- name: Publish
43+
run: pnpm vsce:deploy
4344
env:
44-
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
45-
run: vsce publish
45+
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@
8787
]
8888
},
8989
"scripts": {
90-
"compile": "npm run check-types && node esbuild.js",
90+
"compile": "pnpm run check-types && node esbuild.js",
9191
"check-types": "tsc --noEmit",
9292
"watch": "npm-run-all -p watch:*",
9393
"watch:esbuild": "node esbuild.js --watch",
9494
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
95-
"vscode:prepublish": "npm run package",
96-
"package": "npm run check-types && node esbuild.js --production",
97-
"vsce:package": "pnpm vsce package --no-dependencies"
95+
"vscode:prepublish": "pnpm run package",
96+
"package": "pnpm run check-types && node esbuild.js --production",
97+
"vsce:package": "pnpm vsce package --no-dependencies",
98+
"vsce:deploy": "vsce publish --no-dependencies"
9899
},
99100
"devDependencies": {
100101
"@types/node": "20.x",

0 commit comments

Comments
 (0)