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

🌱 Create the vsix package from dist/ #110

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
42 changes: 20 additions & 22 deletions .github/workflows/ci-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,23 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
vscode/node_modules
webview-ui/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
cache: "npm"

- name: Install workspace dependencies
run: |
npm ci

- name: Lint sources
run: npm run lint
run: |
npm run lint

- name: Build
run: |
npm run build

test:
name: Test (${{ matrix.arch }})
Expand All @@ -85,10 +82,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install workspace dependencies
run: |
Expand Down Expand Up @@ -129,25 +127,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install workspace dependencies
run: npm ci

- name: Build Package
run: npm run package
run: |
npm ci

- name: Generate .vsix package
working-directory: ./vscode
- name: Build the project and generate the .vsix
run: |
npm install @vscode/vsce
npx vsce package
npm run build
npm run collect-assets
npm run dist
npm run package

- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vscode-extension-${{ matrix.arch }}
path: "vscode/*.vsix"
path: "dist/*.vsix"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ out/
build/
dist/
downloaded_assets/
*.vsix

# TypeScript build info
**/tsconfig.tsbuildinfo
Expand Down
Loading
Loading