Publish Extension #15
Workflow file for this run
This file contains hidden or 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: | |
| workflow_dispatch: | |
| inputs: | |
| publish_vscode_marketplace: | |
| description: 'Publish to VS Marketplace' | |
| type: boolean | |
| default: true | |
| publish_ovsx: | |
| description: 'Publish to Open VSX' | |
| type: boolean | |
| default: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish-vscode-marketplace: | |
| name: Publish to VS Marketplace | |
| runs-on: ubuntu-latest | |
| if: ${{ inputs.publish_vscode_marketplace != false }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Set version from branch name | |
| uses: ./.github/actions/set-version | |
| - name: Publish to VS Marketplace | |
| run: make publish-marketplace | |
| env: | |
| VERSION: ${{ env.VERSION }} | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode | |
| NODE_ENV: production | |
| ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events | |
| publish-ovsx: | |
| name: Publish to Open VSX | |
| runs-on: ubuntu-latest | |
| if: ${{ inputs.publish_ovsx != false }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Set version from branch name | |
| uses: ./.github/actions/set-version | |
| - name: Publish to Open VSX | |
| run: make publish-ovsx | |
| env: | |
| VERSION: ${{ env.VERSION }} | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
| LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode | |
| NODE_ENV: production | |
| ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events |