Skip to content

Commit 0948a26

Browse files
author
ashenBlade
committed
fix: invalid vsce login
1 parent 981ee15 commit 0948a26

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/new-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,17 @@ jobs:
2323
node-version: '20.x'
2424
cache: 'npm'
2525
- name: Install vsce
26-
run: npm install -g '@vscode/vsce'
26+
run: npm install '@vscode/vsce' --save-dev
2727
- name: Login VSCE
28-
run: echo ${{ secrets.VSCE_PAT }} | vsce login ${{ secrets.VSCE_PUBLISHER }}
28+
env:
29+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
30+
run: vsce login ${{ secrets.VSCE_PUBLISHER }}
2931
- name: Verify publish access rights
30-
run: vsce verify-pat --pat ${{ secrets.VSCE_PAT }}
32+
env:
33+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
34+
run: vsce verify-pat
3135
- name: Publish package
32-
run: vsce publish
36+
run: npm run deploy
3337

3438

3539

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
"watch": "tsc -watch -p ./",
128128
"pretest": "npm run compile && npm run lint",
129129
"lint": "eslint src --ext ts",
130-
"test": "vscode-test"
130+
"test": "vscode-test",
131+
"deploy": "vsce publish"
131132
},
132133
"devDependencies": {
133134
"@types/vscode": "^1.0.0",

0 commit comments

Comments
 (0)