Skip to content

Commit 282d880

Browse files
committed
ci/release: use yarn for vsce invocations
- Replace npx vsce with yarn vsce in workflows - Update package script to use yarn Refs: #97
1 parent 567e8c4 commit 282d880

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,5 @@ jobs:
7070
SHORT_SHA=${GITHUB_SHA::7}
7171
echo "value=${BASE_VERSION}-pre.${GITHUB_RUN_NUMBER}.${SHORT_SHA}" >> $GITHUB_OUTPUT
7272
73-
- name: Update package.json version
74-
run: npm version "${{ steps.version.outputs.value }}" --no-git-tag-version
75-
7673
- name: Publish prerelease to VS Code Marketplace
77-
run: npx vsce publish --pre-release
74+
run: yarn vsce publish --pre-release ${{ steps.version.outputs.value }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- run: yarn
2424

25-
- run: npx vsce package
25+
- run: yarn vsce package
2626

2727
- uses: "marvinpinto/action-automatic-releases@latest"
2828
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"lint": "eslint . --ext ts,md,json",
2424
"lint:fix": "yarn lint --fix",
2525
"package": "webpack --mode production --devtool hidden-source-map",
26-
"package:prerelease": "npx vsce package --pre-release",
26+
"package:prerelease": "yarn vsce package --pre-release",
2727
"pretest": "tsc -p . --outDir out && yarn run build && yarn run lint",
2828
"test": "vitest",
2929
"test:ci": "CI=true yarn test",

0 commit comments

Comments
 (0)