Skip to content
Merged

Dev #14

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
115 changes: 76 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,76 @@
name: Continuous Integration

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
build_and_lint:
name: Build & Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository

uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 9.15.0

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Run Linter
run: pnpm run lint

- name: Compile and Build Webview
run: pnpm run compile
name: Continuous Integration

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build_and_lint:
name: Build & Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository

uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 9.15.0

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Run Linter
run: pnpm run lint

- name: Compile and Build Webview
run: pnpm run compile
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

name: Continuous Integration

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
build_and_lint:
name: Build & Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository

uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 9.15.0

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Run Linter
run: pnpm run lint

- name: Compile and Build Webview
run: pnpm run compile
152 changes: 76 additions & 76 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
name: Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
name: Package & Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository

uses: actions/checkout@v7

- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 9.15.0

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Compile and Build Webview
run: pnpm run compile

- name: Package Extension
run: npx @vscode/vsce package --no-dependencies

- name: Extract Release Notes from CHANGELOG.md
id: extract_notes
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "Extracting release notes for version $VERSION"

# Match lines starting from ## [VERSION] or ## VERSION until the next ## header
sed -n "/## \[\{0,1\}$VERSION\]\{0,1\}/,/## /p" CHANGELOG.md | grep -v '## ' > release_notes.md

if [ ! -s release_notes.md ]; then
echo "No release notes found for version $VERSION in CHANGELOG.md. Using fallback."
echo "Release version $VERSION" > release_notes.md
fi

- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
body_path: release_notes.md
files: |
*.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to VS Code Marketplace
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
if [ -n "$VSCE_PAT" ]; then
PACKAGE_FILE=$(ls *.vsix | head -n 1)
if [ -n "$PACKAGE_FILE" ]; then
npx @vscode/vsce publish --pat "$VSCE_PAT" --packagePath "$PACKAGE_FILE" --no-dependencies
else
echo "No VSIX package found; skipping Marketplace publish."
fi
else
echo "VSCE_PAT not set; skipping Marketplace publish."
fi
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: Package & Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 9.15.0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Compile and Build Webview
run: pnpm run compile
- name: Package Extension
run: npx @vscode/vsce package --no-dependencies
- name: Extract Release Notes from CHANGELOG.md
id: extract_notes
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "Extracting release notes for version $VERSION"
# Match lines starting from ## [VERSION] or ## VERSION until the next ## header
sed -n "/## \[\{0,1\}$VERSION\]\{0,1\}/,/## /p" CHANGELOG.md | grep -v '## ' > release_notes.md
if [ ! -s release_notes.md ]; then
echo "No release notes found for version $VERSION in CHANGELOG.md. Using fallback."
echo "Release version $VERSION" > release_notes.md
fi
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
body_path: release_notes.md
files: |
*.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to VS Code Marketplace
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
if [ -n "$VSCE_PAT" ]; then
PACKAGE_FILE=$(ls *.vsix | head -n 1)
if [ -n "$PACKAGE_FILE" ]; then
npx @vscode/vsce publish --pat "$VSCE_PAT" --packagePath "$PACKAGE_FILE" --no-dependencies
else
echo "No VSIX package found; skipping Marketplace publish."
fi
else
echo "VSCE_PAT not set; skipping Marketplace publish."
fi
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ web_modules/
.next
out

# Runtime deps copied for VSIX packaging (generated by scripts/copy-deps.mjs)
deps/

# Nuxt.js build / generate output
.nuxt
dist
Expand Down
29 changes: 27 additions & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
.vscode/**
.vscode-test/**
src/**
scripts/**
.gitignore
.yarnrc
.npmrc
vsc-extension-quickstart.md
**/tsconfig.json
**/eslint.config.mjs
**/*.map
**/*.ts
**/.vscode-test.*

# Exclude ALL node_modules — runtime deps are in deps/
node_modules/**

# Strip unnecessary files from deps/ to keep the VSIX small
deps/**/*.map
deps/**/binding.gyp
deps/**/Makefile
deps/**/*.cc
deps/**/*.c
deps/**/*.h
deps/**/*.o
deps/**/*.node
deps/**/*.target.mk
deps/**/build/**
deps/**/prebuilds/**
deps/**/src/**
deps/**/.npmignore
deps/**/.eslintrc*
deps/**/.travis.yml
deps/**/test/**
deps/**/tests/**
deps/**/examples/**
deps/**/docs/**
deps/**/doc/**
Binary file removed codepulse-complexity-1.0.0.vsix
Binary file not shown.
Binary file added codepulse-complexity-3.0.1.vsix
Binary file not shown.
Loading