Merge pull request #24 from shaobeichen/1.11.1 #39
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: Build and Deploy | |
on: | |
# 指明要运行的分支,跟上面配置保持一致 | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 把分支拉出来 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
# 指定node版本 | |
- name: Set node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
# 安装依赖,包括我们的 semantic-release 全套 | |
- name: Install | |
run: npm install | |
# 执行 semantic-release 发布包 | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
run: npx semantic-release |