publish extension to marketplace #57
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: publish extension to marketplace | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["update project templates"] | |
types: | |
- completed | |
jobs: | |
publish: | |
name: Publish | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Publish | |
if: success() | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Github actions" | |
git submodule update --init --recursive | |
cd Extension | |
npm install | |
npm run publish -- 0.1.${{github.run_number}} | |
env: | |
VSCE_PAT: ${{ secrets.VSCETOKEN }} |