Skip to content

v0.0.24-beta

v0.0.24-beta #6

Workflow file for this run

name: release
on:
release:
types:
- released
jobs:
release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
environment: TOKEN_VSCODE
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- name: Set Git identity
run: |
git config user.email "[email protected]"
git config user.name "nickyinluo"
- name: Publish to VS Marketplace
if: success()
run: |
npm run package.current
npm run release.current
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
- name: Get Current Version
id: vscode-ext-pkg-ver
uses: martinbeentjes/[email protected]
- name: Releaes to Github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.vscode-ext-pkg-ver.outputs.current-version}}
prerelease: false
title: "v${{ steps.vscode-ext-pkg-ver.outputs.current-version}}"
files: |
vscode-tencentcloud-terraform-*.vsix