首先,我们创建项目: # 需要系统中安装有 NodeJS >=12 mkdir wxcloud-static-demo cd wxcloud-static-demo npm init -y # 安装 Eleventy npm install --save-dev @11ty/eleventy # 生成 README.md echo '# Weixin Cloud Run Static Storage Demo' > README.md # 生成 .gitignore echo 'node_modules'...
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:部署...
Although not breaking per definition, our typescript rewrite will change internal functions and their names. Please get in contact with us, if you are using some parts of node-cache's internal api so we can work something out! Install ...
fengmk2+node-modules@gmail.com Overview Repositories124 Projects Packages People17 More PinnedLoading urlliburllibPublic Request HTTP(s) URLs in a complex world. TypeScript735125 detect-portdetect-portPublic Node.js module to detect available ports of the system. ...
**/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 scopes The cache is scoped to the key,version, and branch. The default branch cache is available to other branches. SeeMatching a cache keyfor more info. Example cache workflow Restoring and saving cache using a single action name:Caching Primeson:pushjobs:build:runs-on:ubuntu-lateststep...
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...
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 - ...
Github Action actions/cache actions/cache-docs 或者直接点下方的链接,直接跳到相关cache的例子 Examples C# - NuGet D - DUB Elixir - Mix Go - Modules Haskell - Cabal Java - Gradle Java - Maven Node - npm macOS and Ubuntu Windows Using multiple systems andnpm config ...