test_002 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy VSCode Extension | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "16" | |
- name: Install dependencies | |
run: npm install | |
- name: Install vsce | |
run: npm install -g vsce | |
- name: Build extension | |
run: npm run build | |
- name: Debug environment variables | |
run: | | |
echo "VSCE_TOKEN: $VSCE_TOKEN" | |
env: | |
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} | |
- name: Deploy extension | |
run: | | |
vsce package | |
vsce publish -p $VSCE_TOKEN | |
env: | |
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} |