Skip to content

Publish Release

Publish Release #1

Workflow file for this run

name: Publish Release
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to release (e.g. 0.0.0)'
required: true
jobs:
publish:
permissions:
# allow the workflow to update the repository with the new tag
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Install vsce
run: npm install -g vsce
- name: Publish
run: vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} ${{ github.event.inputs.tag }}
- name: Push tag
run: |
git push origin master
git push origin "v${{ github.event.inputs.tag }}"