uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 with: node-version: 16.13.x cache: npm - name: Install run: npm ci - name: Install @wxcloud/cli run: npm i -g @wxcloud/cli - name: Login @wxcloud/cli run: wxcloud login --appId "$WXCLOUD_APPID" --p...
npm install hexo-cli -g-name:缓存 Hexouses:actions/cache@v1id:cachewith:path:node_moduleskey:${{runner.OS}}-${{hashFiles('**/package-lock.json')}}-name:安装依赖if:steps.cache.outputs.cache-hit!='true'run:|npm install --save-name:生成静态文件run:|hexo clean hexo generate-name:部署...
node_modules All about node.js modules like your project 'node_modules' dir 128followers anywhere @fengmk2 fengmk2+node-modules@gmail.com Overview Repositories124 Projects Packages People17 More PinnedLoading urlliburllibPublic Request HTTP(s) URLs in a complex world....
-name:Cache multiple pathsuses:actions/cache@v2with:path:|~/cache!~/cache/exclude**/node_moduleskey:${{ runner.os }}-${{ hashFiles('**/lockfiles') }} Increased performance and improved cache sizes usingzstdcompression for Linux and macOS runners ...
**/node_moduleskey:${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}restore-keys:| ${{ runner.os }}-yarn-# 如果缓存没有命中,安装依赖-name:Installdependenciesif:steps.yarn-cache.outputs.cache-hit!='true'run:yarn--frozen-lockfile# 运行构建脚本-name:BuildVuePresssiterun:yarndocs:build...
Cache dependencies and build outputs. Latest version: 0.1.2, last published: 8 months ago. Start using github-actions-s3-cache in your project by running `npm i github-actions-s3-cache`. There are no other projects in the npm registry using github-action
Use Node.js 16 uses: actions/setup-node@v3 with: node-version: 16 # semantic-release 需要 >= 16 的 Node.js 环境 cache: 'yarn' - name: Install dependencies run: yarn - name: Build run: yarn build # 自动发布完成后 触发 github.release.published 事件 # 如果是 action 自带的 机器人 tok...
yml name: 前端直接部署 # 手动构建 # on: workflow_dispatch # 自动构建 on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: # 拉取仓库文件 - name: 拉取master分支代码 uses: actions/checkout@v3 with: # 默认当前分支 ref: 'master' # action命令,安装Node v18.17.1 - ...
name:Cachingwithnpmon:pushjobs:build:runs-on:ubuntu-lateststeps:-uses:actions/checkout@v4-name:Cachenodemodulesid:cache-npmuses:actions/cache@v4env:cache-name:cache-node-moduleswith:# npm cache files are stored in `~/.npm` on Linux/macOSpath:~/.npmkey:${{runner.os}}-build-${{env.cach...
~/cache/exclude**/node_moduleskey:${{runner.os}}-${{hashFiles('**/lockfiles')}}# 安装项目依赖-name:Install Dependenciesrun:npm install # 执行代码检查-name:Lint Coderun:npm run lint # 编译项目到静态文件-name:Build Staticrun:npm run build...