Skip to content

Commit d4233cc

Browse files
committed
Update Publish action
1 parent 526746d commit d4233cc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/Publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Install Dependencies # vsce etc
2323
run: | # shell
24-
npm i @vscode/vsce -g
24+
npm i
2525
2626
- name: Setup Github Actions # allow use of `git push`
2727
run: | # shell
@@ -33,9 +33,9 @@ jobs:
3333
- name: Package Extension # `.vsix` file
3434
run: | # shell
3535
if [ ${{ github.event.inputs.version }} = "keep" ]; then
36-
vsce package
36+
npm run package
3737
else
38-
vsce package ${{ github.event.inputs.version }}
38+
npm run package --- ${{ github.event.inputs.version }}
3939
fi
4040
git push --follow-tags
4141
echo "VERSION=$(node -p "require('./package.json').version")" >> "$GITHUB_ENV"
@@ -48,6 +48,6 @@ jobs:
4848

4949
- name: Publish Release # upload to Extension Marketplace
5050
run: | # shell
51-
vsce publish --packagePath rascal-syntax-highlighter-$VERSION.vsix
51+
npm run publish --- --packagePath rascal-syntax-highlighter-$VERSION.vsix
5252
env:
5353
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)