Actions: pnpm/pnpm Actions All workflows Tag Audit CI CodeQL Release Management Caches Deployments All workflows Showing runs from all workflows 11,399 workflow runs Event Status Branch Actor fix: pnpm version management, when dangerouslyAllowAllBuilds is set to true Audit #2437: Pull ...
- run: npm i -g pnpm @antfu/ni - run: nci - run: nr test --if-present - run: npx conventional-github-releaser -p angular continue-on-error: true env: ELECTRON_SKIP_BINARY_DOWNLOAD: '1' - run: npm run publish:ci CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}} - ...
通过命令行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...
这里申请了一个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 ...
推荐使用pnpm,命令行安装npm install -g pnpm。 创建工程,安装VitePress。首先创建文件夹,并打开命令行。 # 初始化node工程pnpminit# 安装vitepresspnpmadd-Dvitepress# 初始化vitepresspnpmexecvitepressinit 初始化vitepress时的注意事项 初始化时会要求填入配置目录位置,填入./docs ...
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 ...
node版本,根据你的项目实际使用版本设置 打包目录,一般都是dist,如果不是的话请修改 项目脚本,此项目是使用npm构建,如果你使用的是pnpm,或者ymal等,需要手动修改。下面给出pnpm的设置: steps: -name:Checkout uses:actions/checkout@v4 -name:Setuppnpm ...