0.9.16 #18
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
| # This is a basic workflow to help you get started with Actions | |
| name: Publish beyond-debug | |
| # Controls when the workflow will run | |
| on: | |
| release: | |
| types: | |
| - published | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install the dependencies | |
| run: npm i | |
| - name: Install vsce | |
| run: npm i -g vsce | |
| - name: Install esbuild | |
| run: npm i -g esbuild | |
| - name: Build with esbuild | |
| run: npm run esbuild-base | |
| # | |
| # Package and Upload Extension | |
| # | |
| # NOTE: | |
| # The "vscode:prepublish" script in package.json will be executed to compile the extension | |
| # prior to packaging. | |
| # | |
| - name: Package Extension into .vsix file | |
| id: asset | |
| shell: bash | |
| run: | | |
| vsce package | |
| echo "vsix_path=$(ls *.vsix)" >> $GITHUB_OUTPUT | |
| - name: Upload .vsix file to Github as release asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ${{ steps.asset.outputs.vsix_path }} | |
| asset_name: ${{ steps.asset.outputs.vsix_path }} | |
| asset_content_type: application/zip | |
| - name: Publish | |
| run: vsce publish -p ${{ secrets.VSCE_PAT }} |