Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix release process #150

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
types: [created]

jobs:

release:
runs-on: ubuntu-latest
steps:
Expand All @@ -15,6 +14,13 @@ jobs:
node-version: 18
- run: npm install
- run: npm run vscode:prepublish
- run: npm run deploy
- name: Runs on Pre-Release
if: 'github.event.prerelease'
run: npm run deploy-pre-release
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
- name: Runs on Release
if: '!github.event.prerelease'
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
]
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"vscode:prepublish": "npm run esbuild -- --minify",
"esbuild": "node esbuild",
"esbuild-watch": "node esbuild --watch",
"lint": "eslint src --ext ts",
Expand Down