diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index e3c592910..a303cf874 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: ^16.13 + node-version: 16.16.0 - name: Cache Node Modules id: cache uses: actions/cache@v2 @@ -32,10 +32,10 @@ jobs: cache-name: cache-node-modules with: path: ./node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}-node-16.16.0 - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.MS_READ_PACKAGES_GITHUB_PAT }}" >> ~/.npmrc name: Configure Credentials For GitHub Packages - - run: npm install + - run: npm ci if: steps.cache.outputs.cache-hit != 'true' working-directory: . - run: npm run prettier @@ -48,7 +48,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: ^16.13 + node-version: 16.16.0 - name: Cache Node Modules id: cache uses: actions/cache@v2 @@ -56,10 +56,10 @@ jobs: cache-name: cache-node-modules with: path: ./node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}-node-16.16.0 - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.MS_READ_PACKAGES_GITHUB_PAT }}" >> ~/.npmrc name: Configure Credentials For GitHub Packages - - run: npm install + - run: npm ci if: steps.cache.outputs.cache-hit != 'true' working-directory: . - run: npm run eslint @@ -72,7 +72,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: ^16.13 + node-version: 16.16.0 - name: Cache Node Modules id: cache uses: actions/cache@v2 @@ -80,10 +80,10 @@ jobs: cache-name: cache-node-modules with: path: ./node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}-node-16.16.0 - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.MS_READ_PACKAGES_GITHUB_PAT }}" >> ~/.npmrc name: Configure Credentials For GitHub Packages - - run: npm install + - run: npm ci if: steps.cache.outputs.cache-hit != 'true' working-directory: . - run: npm run test