Changeset 51341 for trunk/.github/workflows/test-npm.yml
- Timestamp:
- 07/06/2021 01:12:13 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/.github/workflows/test-npm.yml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/test-npm.yml
r50930 r51341 43 43 # - Logs debug information about the runner container. 44 44 # - Installs NodeJS 14. 45 # - Sets up caching for NPM.46 45 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 47 46 # - Builds WordPress to run from the `build` directory. … … 71 70 72 71 - name: Install NodeJS 73 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.572 uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 74 73 with: 75 74 node-version: 14 76 77 - name: Cache NodeJS modules (Ubuntu & MacOS) 78 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 79 if: ${{ matrix.os != 'windows-latest' }} 80 with: 81 path: ~/.npm 82 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 83 84 - name: Get NPM cache directory (Windows only) 85 if: ${{ matrix.os == 'windows-latest' }} 86 id: npm-cache 87 run: echo "::set-output name=dir::$(npm config get cache)" 88 89 - name: Cache NodeJS modules (Windows only) 90 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 91 if: ${{ matrix.os == 'windows-latest' }} 92 with: 93 path: ${{ steps.npm-cache.outputs.dir }} 94 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 75 cache: npm 95 76 96 77 - name: Install Dependencies … … 117 98 # - Logs debug information about the runner container. 118 99 # - Installs NodeJS 14. 119 # - Sets up caching for NPM.120 100 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 121 101 # - Builds WordPress to run from the `build` directory. … … 140 120 141 121 - name: Install NodeJS 142 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5122 uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 143 123 with: 144 124 node-version: 14 145 146 - name: Cache NodeJS modules 147 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 148 if: ${{ matrix.os != 'windows-latest' }} 149 with: 150 path: ~/.npm 151 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 125 cache: npm 152 126 153 127 - name: Install Dependencies
Note: See TracChangeset
for help on using the changeset viewer.