Skip to content

chore: bump version to 0.6.2 #133

chore: bump version to 0.6.2

chore: bump version to 0.6.2 #133

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
yarn install
- name: Build
env:
CROWDIN_API_TOKEN: '${{ secrets.CROWDIN_API_TOKEN }}'
run: |
yarn run package
- name: grep asset name and tag name
run: |
NAME="$(ls | grep 'cactbot-highlight-.*.vsix')"
echo "ASSET_NAME=$NAME" >> $GITHUB_ENV
TAG="$(echo '${{ github.ref }}' | sed 's/refs\/tags\///g')"
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
name: Cactbot Highlight ${{ env.TAG }}
body: ''
draft: true
files: |
${{ env.ASSET_NAME }}
- name: Publish to VS Market
run: |
yarn vsce publish -p ${{ secrets.AZURE_TOKEN }}
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}