Automatically install the probe-rs binaries on request #43
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
# This Action is triggered when a new release tag is created in the repository. | |
# Based on: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions | |
# It packages and publishes the extension to the VSCode marketplace. | |
# The publish will only have an effect if the version number was bumped in the `package.json`, | |
# else it will complete this job, and silently fail to publish an update on the marketplace. | |
name: Publish the VS Code Extension | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
if_merged: | |
name: Publish the VS Code Extension | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- run: npm install --frozen-lockfile | |
- run: npm install -g vsce | |
- run: npm run pretest | |
- name: Finally, publish to the marketplace. | |
run: npm run publish | |
env: | |
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }} |