feat: initial commit #1
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
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- run: npm install | |
- run: npm install -g vsce | |
- name: Publish | |
run: vsce publish -p ${{ secrets.VSCE_PAT }} | |
release-open-vsx: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm install | |
- name: Install ovsx (Open VSX CLI) | |
run: npm install -g ovsx | |
- name: Publish to Open VSX | |
run: | | |
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }} |