Skip to content

Commit de4cd6a

Browse files
committed
📦 use npx to run publish
1 parent eac3343 commit de4cd6a

File tree

3 files changed

+10
-356
lines changed

3 files changed

+10
-356
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ jobs:
5959

6060
- name: Publish
6161
if: success() && startsWith( github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
62-
run: yarn deploy
62+
run: npx vsce publish --yarn
6363
env:
6464
VSCE_PAT: ${{ secrets.VSCE_PAT }}

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,7 @@
346346
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. .",
347347
"lint": "eslint src --ext ts",
348348
"lint-fix": "eslint src --ext ts --fix",
349-
"vscode:prepublish": "yarn clean && yarn compile",
350-
"deploy": "vsce publish --yarn",
351-
"package": "vsce package"
349+
"vscode:prepublish": "yarn clean && yarn compile"
352350
},
353351
"devDependencies": {
354352
"@types/glob": "^7.2.0",
@@ -375,7 +373,6 @@
375373
"rimraf": "^3.0.2",
376374
"ts-loader": "^9.2.6",
377375
"typescript": "^4.4.4",
378-
"vsce": "^1.100.2",
379376
"vscode-test": "^1.4.1",
380377
"vscode-uri": "^3.0.2",
381378
"webpack": "^5.60.0",
@@ -390,4 +387,4 @@
390387
"email": "xsro@foxmail.com"
391388
},
392389
"license": "MIT"
393-
}
390+
}

0 commit comments

Comments
 (0)