Skip to content

Commit 7195cbb

Browse files
askptCopilot
andauthored
ci: Update release workflow and package configuration (#23)
* chore: add @vscode/vsce dependency to package.json Signed-off-by: GitHub <noreply@github.com> * fix: update excludePatterns in package.json for complexity analysis Signed-off-by: GitHub <noreply@github.com> * fix: update release workflow to include environment and streamline publish step Signed-off-by: GitHub <noreply@github.com> * fix: add npm install and test steps to release workflow Signed-off-by: GitHub <noreply@github.com> * fix: remove conditional for npm test and update deploy script in package.json Signed-off-by: GitHub <noreply@github.com> * Update .github/workflows/release.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: GitHub <noreply@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5218704 commit 7195cbb

File tree

3 files changed

+4622
-1254
lines changed

3 files changed

+4622
-1254
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
release:
2828
needs: release-please
2929
runs-on: ubuntu-latest
30+
environment: marketplace
3031
if: needs.release-please.outputs.release_created == 'true'
3132
permissions:
3233
contents: read
@@ -41,7 +42,15 @@ jobs:
4142
with:
4243
node-version: 22.x
4344
- run: npm install
44-
- run: xvfb-run -a npm test
45-
if: runner.os == 'Linux'
46-
- run: npm test
47-
if: runner.os != 'Linux'
45+
- name: Test
46+
run: |
47+
if [ "$RUNNER_OS" = "Linux" ]; then
48+
xvfb-run -a npm test
49+
else
50+
npm test
51+
fi
52+
- name: Publish
53+
if: success()
54+
run: npm run deploy
55+
env:
56+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)