Skip to content

Commit 567e8c4

Browse files
committed
ci: ensure vsce uses computed prerelease version
- Guard on secret directly in job condition - Bump package.json version in CI to align with computed prerelease - Publish with vsce --pre-release without explicit version arg Refs: #97
1 parent da758cf commit 567e8c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
preview:
4646
name: preview prerelease (marketplace)
47-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.VSCE_PAT != '' }}
47+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && secrets.VSCE_PAT != '' }}
4848
runs-on: ubuntu-22.04
4949
needs: [lint, test]
5050
concurrency:
@@ -70,5 +70,8 @@ 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+
7376
- name: Publish prerelease to VS Code Marketplace
74-
run: npx vsce publish --pre-release ${{ steps.version.outputs.value }}
77+
run: npx vsce publish --pre-release

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy