Skip to content

Release the VS Code extension #11

Release the VS Code extension

Release the VS Code extension #11

name: Release the VS Code extension
on:
workflow_dispatch:
jobs:
release:
if: >
github.ref == 'refs/heads/trunk' && (
github.actor == 'adamziel' ||
github.actor == 'dmsnell' ||
github.actor == 'bgrgicak' ||
github.actor == 'sejas' ||
github.actor == 'danielbachchuber'
)
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
clean: true
fetch-depth: 0
persist-credentials: false
- name: Setup SSH Keys
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.GH_DEPLOY_KEY }}
- name: Bump version
run: |
cd packages/vscode-extension
npm version patch -m "VSCode Extension: Version %s"
git config --global user.name "deployment_bot"
git config --global user.email "deployment_bot@users.noreply.github.com"
git push --follow-tags
- name: Authenticate with VS Code Marketplace
run: vsce login WordPressPlayground -p ${{ secrets.VSCODE_PERSONAL_ACCESS_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Publish to VS Code Marketplace
run: npm run release:vscode