Skip to content

Merge branch 'release/1.12.24' #46

Merge branch 'release/1.12.24'

Merge branch 'release/1.12.24' #46

Workflow file for this run

name: Publish
on:
push:
tags:
- 1.*
jobs:
publish:
name: Publish VS Code Extension
runs-on: ubuntu-latest
steps:
- name: Checkout Tag
uses: actions/checkout@v2
with:
ref: ${{ github.event.push.ref }}
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- name: Install NPM Packages
run: |
npm -v
npm ci
npm install -g vsce ovsx semver
- name: Package
run: vsce package
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
file=$(realpath $(ls -t *.vsix | head -1))
vsce publish -i $file -p ${{ secrets.VSCE_TOKEN }}
npx ovsx publish $file -p ${{ secrets.OVSX_TOKEN }}
gh release create '${{ github.ref_name }}' -n "See [Changelog](https://github.com/Serhioromano/vscode-st/blob/master/CHANGELOG.md) for details." $file