Skip to content

Commit

Permalink
Update release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lzm0x219 committed Dec 11, 2022
1 parent 99c5ca8 commit cca816c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
- name: Publish pre-release version
if: success() && github.event.type == 'published'
run: pnpm publish:pre
run: pnpm release:pre
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish official version
if: success() && github.event.type == 'prereleased'
run: pnpm publish:pre
run: pnpm release
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"package": "pnpm vsce package --no-dependencies",
"package:pre": "pnpm vsce package --pre-release --no-dependencies",
"prepare": "is-ci || husky install",
"publish": "pnpm vsce publish --no-dependencies",
"publish:pre": "pnpm vsce publish --pre-release --no-dependencies",
"release": "pnpm vsce publish --no-dependencies",
"release:pre": "pnpm vsce publish --pre-release --no-dependencies",
"vscode:prepublish": "pnpm build"
},
"contributes": {
Expand Down

0 comments on commit cca816c

Please sign in to comment.