Skip to content

VSCode Getting Started Experience #152

VSCode Getting Started Experience

VSCode Getting Started Experience #152

Workflow file for this run

name: Package Extension
on:
pull_request:
push:
branches: [main]
tags-ignore:
- "**"
release:
types:
- created
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun prettier . --check
- run: bun eslint
- run: bun run tsc --noEmit
- name: Test
run: bun test
package:
name: "Package"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --production
- run: bun run package
- name: Setup Environment
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}.vsix
path: ./${{ env.PACKAGE_NAME }}.vsix
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/v')
run: bun vsce-publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
jetbrains:
name: "JetBrains"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun build-jetbrains
- uses: actions/upload-artifact@v4
with:
name: "Jetbrains"
path: "./dist/jetbrains/"