Actions: pnpm/pnpm Actions All workflows Tag Audit CI CodeQL Release Management All workflows Showing runs from all workflows 10,647 workflow runs fix: test CI#17188:Commit35548b9pushed byzkochan peer-validation-should-be-compatible-with-overrides-8978...
Actions: pnpm/pnpmActions All workflows Check spelling CI CodeQL Release Tag Management Caches Deployments Attestations All workflows Showing runs from all workflows 9,933 workflow runs Event Status Branch Actor fix(listing): --json shows wrong private ...
通过命令行pnpm create vite@latest my-react-app --template react-ts创建一个 Vite + React 项目。 配置CI Workflow 在项目根目录里.github/workflows文件夹中新建ci.yml,代码如下: yml name:CI # en: Set the event to pull request event and push event of the master branch # zh: Event 设置为 mas...
我们使用GitHub Actions就能做到这一点。而且GitHub还提供了服务器,我们可以把构建过程放到服务器中进行。 首先创建配置文件,位置.github/workflows/deploy.yml。 name:Deployon:# Runs on pushes targeting the default branchpush:branches:["master"]# Allows you to run this workflow manually from the Actions tab...
这里申请了一个Ubuntu的虚拟机,第一步先是检出代码,第二步安装PNPM,下一步设置Node js,这里的版本是18P,pnpm install安装项目依赖,这里run build就是编译打包。这里对Github Pages进行了设置,然后把打包编译后的结果上传的上传的目录就是这个点dist目录。最后再发布到Github Pages上。
运行pnpm run test。 编写step可以使用下面三个方式: run: 执行 shell 命令行命令; env: 设置环境变量; uses: 运行第三方 Action 脚本。 示例: 命令行是一种最好理解的执行方式,比如运行测试: pnpm runtest:run 你可以这样设置: - name: Run Test ...
github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v2 with: version: 8 - uses: actions/setup-node@v3 with: node-version: 18 cache: ...
通过命令行pnpm create vite@latest my-react-app --template react-ts创建一个 Vite + React 项目。 配置CI Workflow 在项目根目录里.github/workflows文件夹中新建ci.yml,代码如下: name: CI # en: Set the event to pull request event and push event of the master branch ...
推送代码到master分支,或者master分别合并了pr时,执行流水线. 流水线文件存放在.github/workflows/deploy.yml基于node16.x版本,全局安装pnpm,并安装项目依赖,并进行构建。 构建完成后,使用Actionsssh-scp-ssh-pipelineshttps://github.com/marketplace/actions/ssh-scp-ssh-pipelines ...
run:pnpm install-name:Build run:pnpm run build-gp-pages-name:Setup Pages uses:actions/configure-pages@v3-name:Upload artifact uses:actions/upload-pages-artifact@v1with:# Upload dist repository path:'./dist'-name:Deploy to GitHub Pages