Merge pull request #160 from RooVetGit/changeset-release/main #95
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 | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
publish-extension: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'R00-B0T' || github.event_name == 'workflow_dispatch' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Install Dependencies | |
run: | | |
npm install -g vsce ovsx | |
npm install | |
cd webview-ui | |
npm install | |
cd .. | |
- name: Package and Publish Extension | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
run: | | |
current_package_version=$(node -p "require('./package.json').version") | |
npm run publish:marketplace | |
echo "Successfully published version $current_package_version to VS Code Marketplace" |