Skip to content

πŸš€ deploy: 버전 μž¬μ„€μ • 및 github action μˆ˜μ • #22

πŸš€ deploy: 버전 μž¬μ„€μ • 및 github action μˆ˜μ •

πŸš€ deploy: 버전 μž¬μ„€μ • 및 github action μˆ˜μ • #22

Workflow file for this run

name: Publish VSCode Extension
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Create .env file with API key
run: echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env
- name: Compile TypeScript
run: npm run compile
- name: Set Git user (for versioning)
run: |
git config user.name ${{ secrets.USER_NAME }}
git config user.email ${{ secrets.USER_EMAIL }}
- name: Publish
run: |
npx vsce publish -p ${{ secrets.VSCE_TOKEN }}