Skip to content

Commit 4dc0c73

Browse files
committed
Update workflow file style
1 parent 340592d commit 4dc0c73

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/publish pre-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- 'main'
7+
- main
88
paths:
99
- '**.tmLanguage.json'
1010
- '**.language-configuration.json'
@@ -33,5 +33,7 @@ jobs:
3333
3434
- name: Publish Pre-release # upload to Extension Marketplace
3535
run: | # shell
36-
npx vsce publish patch --pre-release -p ${{ secrets.VSCE_PAT }}
36+
npx vsce publish patch --pre-release
3737
git push --follow-tags
38+
env:
39+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version'
8-
default: 'minor'
7+
description: Version
8+
default: minor
99
type: choice
1010
options:
1111
- patch
@@ -47,4 +47,6 @@ jobs:
4747

4848
- name: Publish Release # upload to Extension Marketplace
4949
run: | # shell
50-
npx vsce publish -p ${{ secrets.VSCE_PAT }} --packagePath tmlanguage-syntax-highlighter-$VERSION.vsix
50+
npx vsce publish --packagePath tmlanguage-syntax-highlighter-$VERSION.vsix
51+
env:
52+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)