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...
name: Caching with npm on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Cache node modules id: cache-npm uses: actions/cache@v4 env: cache-name: cache-node-modules with: # npm cache files are stored in `~/.npm` on Linux/macOS ...
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....
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:部署...
npm install node-cache --save Or just require thenode_cache.jsfile to get the superclass Examples: Initialize (INIT): constNodeCache=require("node-cache");constmyCache=newNodeCache(); Options stdTTL:(default:0)the standard ttl as number in seconds for every generated cache element.0= unlimi...
SeeExamplesfor a list ofactions/cacheimplementations for use with: C# - NuGet Clojure - Lein Deps D - DUB Deno Elixir - Mix Go - Modules Haskell - Cabal Haskell - Stack Java - Gradle Java - Maven Node - npm Node - Lerna Node - Yarn ...
ubuntu-lateststeps:-uses:actions/checkout@v2with:# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录fetch-depth:0-name:SetupNode.jsuses:actions/setup-node@v1with:# 选择要使用的 node 版本node-version:'16'# 缓存 node_modules-name:Cachedependenciesuses:actions/cache@v2id:yarn-cachewith...
17.1 - name: 安装node uses: actions/setup-node@v3 with: node-version: 18.17.1 cache: 'npm' # 执行打包命令 - run: | if [ -n "${{ secrets.API_HOST }}" ]; then # 使用设置中的接口地址 echo -e "\nVITE_API_URL=${{ secrets.API_HOST }}" >> .env.production fi - run: node...
# 使用一个Actions 使用uses关键字,with表明参数-name:Setup Nodeuses:actions/setup-node@v1with:node-version:'10.x'# 使用多路径的缓存帮助构建-name:Cache multiple pathsuses:actions/cache@v2with:path:|~/cache!~/cache/exclude**/node_moduleskey:${{runner.os}}-${{hashFiles('**/lockfiles')}}...
uses: actions/setup-node@v1 with: node-version: ${{ matrix.node_version }} - name: Configuration environment env: HEXO_DEPLOY_PRI: ${{secrets.HEXO_DEPLOY_PRI}} run: | sudo timedatectl set-timezone "Asia/Shanghai" mkdir -p ~/.ssh/ ...