Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
run: gh pr merge -ds "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 25 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint

on: [push]
on:
push:
branches-ignore:
- main

jobs:
lint:
Expand All @@ -10,17 +13,26 @@ jobs:
- uses: actions/setup-node@v7
with:
node-version: lts/*
- name: Installing dependencies
run: yarn
- name: Running linter
run: npx eslint --fix --max-warnings 0
- name: Committing fix
id: commit

- run: yarn

- run: npx eslint --fix --max-warnings 0

- name: Git diff
id: diff
continue-on-error: true
run: git diff --quiet

- name: Git config
if: steps.diff.outcome != 'failure'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "style: fix linter issues"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Commit if changed
if: steps.diff.outcome != 'failure'
continue-on-error: true
- name: push
if: steps.commit.outcome != 'failure'
run: git push
run: |
git add package.json
git commit -m "style: fix linter issues"
git push
9 changes: 6 additions & 3 deletions .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Deploy Extension

on:
release:
types: [created]
types:
- created

jobs:
deploy:
Expand All @@ -12,22 +13,24 @@ jobs:
- uses: actions/setup-node@v7
with:
node-version: lts/*

- run: yarn

- name: "Create VSIX"
id: createVSIX
run: |
npx vsce@latest package
npx vsce@latest package ${{ github.event.release.prerelease && '--pre-release' || '' }}
PKG=$(node -p "require('./package.json').name + '-' + require('./package.json').version")
echo "vsixPath=$PKG.vsix" >> $GITHUB_OUTPUT

- name: Upload .vsix to release
if: ${{ steps.createVSIX.outputs.vsixPath }}
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ steps.createVSIX.outputs.vsixPath }}
prerelease: ${{ github.event.release.prerelease }}
tag_name: ${{ github.ref_name }}

- name: Publish to Open VSX Registry
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/sync-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ permissions:

on:
push:
branches:
- "**"
branches-ignore:
- main
paths:
- 'package.json'
- package.json
workflow_dispatch:

jobs:
Expand All @@ -23,18 +23,23 @@ jobs:
node-version: lts/*

- name: Sync engine version
run: node scripts/syncPackageEngineWithDependency.mjs vscode @types/vscode

- name: Git diff
id: diff
continue-on-error: true
run: git diff --quiet

- name: Git config
if: steps.diff.outcome != 'failure'
run: |
node scripts/syncPackageEngineWithDependency.mjs vscode @types/vscode
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Commit if changed
id: commit
if: steps.diff.outcome != 'failure'
continue-on-error: true
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add package.json
git commit -m "chore: sync vscode engine version with dependency"

- name: push
if: steps.commit.outcome != 'failure'
run: git push
git push
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,16 +1335,16 @@
"@types/node": "24",
"@types/vscode": "^1.134.0",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "^8.68.0",
"@typescript-eslint/parser": "^8.68.0",
"@typescript-eslint/eslint-plugin": "^8.69.0",
"@typescript-eslint/parser": "^8.69.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.1.0",
"esbuild": "^0.28.2",
"eslint": "^10.9.1",
"globals": "^17.11.0",
"mocha": "^11.8.0",
"globals": "^17.12.0",
"mocha": "^12.0.0",
"npm-run-all": "^4.1.5",
"type-fest": "^5.8.0",
"type-fest": "^5.9.0",
"typescript": "^6.0.3"
}
}
Loading
Loading