Add a gif showing how to use the TRB snippets VS Code extension for the theme-redone WordPress framework #2
Workflow file for this run
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 to VS Code Marketplace | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-extension: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'webredone' && github.event.release.target_commitish == 'main' | |
steps: | |
- name: Check Out Repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.10.0' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Dependencies | |
run: npm install | |
- name: Package Extension | |
run: npx vsce package | |
- name: Publish Extension | |
run: npx vsce publish -p ${{ secrets.VS_MARKETPLACE_PAT }} | |
env: | |
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_PAT }} |