Merge branch 'release/1.12.33' #55
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
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 20 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
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 |