chore(release): 1.3.4 api-axios-request 声明生成方法 #78
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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.0] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Get commit message | |
- name: Get commit message | |
run: | | |
COMMIT_MESSAGE=$(git log --format=%s -n 1) | |
echo "commitmsg=${COMMIT_MESSAGE}" >> $GITHUB_ENV | |
- name: Deploy | |
if: startsWith( env.commitmsg , 'chore(release):' ) | |
run: | | |
yarn | |
yarn deploy -p ${{ secrets.VSCE_TOKEN }} |