Github Actions 监听仓库 commit 事件,然后执行自动化打包流程,并通过第三方平台自动部署,发布非常方便。 name:Buildon:push:branches:- mainjobs:build:runs-on:ubuntu-lateststeps:- name:Checkout codeuses:actions/checkout@v2- name:Install dependenciesrun:npm install- name:Buildrun:npm run build- name:Commit changesrun:|git config --global user.email "youremail" git config --global user.name "username" git add . git commit -m "Action bot commit"- name:Push changesuses:ad-m/github-push-action@masterwith:github_token:${{ secrets.GITHUB_TOKEN }}bra