v0.0.24-beta #6
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: 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 |