Skip to content

Commit d0f2d27

Browse files
authored
Merge pull request #478 from nocalhost/zhangjian10-patch-1
Update release.yml
2 parents fad07f3 + ce991b7 commit d0f2d27

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- "v*"
77
workflow_dispatch:
8+
inputs:
9+
version:
10+
type: string
11+
description: release version
812

913
jobs:
1014
release-plugin:
@@ -46,7 +50,7 @@ jobs:
4650

4751
- name: build
4852
env:
49-
VERSION: ${{ env.RELEASE_VERSION }}
53+
VERSION: ${{ inputs.version || env.RELEASE_VERSION }}
5054
MINIMUNM_VERSION_REQUIREMENT: ${{ secrets.MINIMUNM_VERSION_REQUIREMENT }}
5155
run: pnpm build
5256

@@ -72,7 +76,7 @@ jobs:
7276
asset_content_type: application/octet-stream
7377

7478
- name: Publish To VS Code Extension Marketplace
75-
run: pnpm vsce publish -p ${{ secrets.VSCE_TOKEN }} --no-dependencies
79+
run: pnpm vsce publish -p ${{ secrets.VSCE_TOKEN }} --no-dependencies --allow-star-activation
7680

7781
- name: Publish openVSX
7882
run: pnpm dlx ovsx publish nocalhost.vsix -p ${{ secrets.OPEN_VSX_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)