Skip to content

Commit

Permalink
Don't set version in package.json on publish
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <[email protected]>
  • Loading branch information
charlieegan3 committed Apr 23, 2024
1 parent bc1d830 commit 013031b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
VERSION_FROM_PACKAGE_JSON=$(jq -r '.version' package.json)
# the GITHUB_REF_NAME is the tag name, e.g. v1.0.0
VERSION_FROM_GITHUB_REF_NAME=${GITHUB_REF_NAME:1} # remove the v prefix
if [ "$VERSION_FROM_PACKAGE_JSON" = "$VERSION_FROM_GITHUB_REF_NAME" ]; then
echo "The versions match, proceeding to publish."
else
Expand All @@ -37,5 +37,10 @@ jobs:
- name: Install vsce
run: npm install -g vsce

- name: Publish
run: vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} $GITHUB_REF_NAME
- name: Publish to marketplace
run: |
vsce publish \
--no-update-package-json \
--no-git-tag-version \
-p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} \
$GITHUB_REF_NAME

0 comments on commit 013031b

Please sign in to comment.