Skip to content

Commit

Permalink
fix release process
Browse files Browse the repository at this point in the history
  • Loading branch information
joacoc committed Nov 15, 2023
1 parent ee35653 commit 1754ba6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit 1754ba6

Please sign in to comment.