Skip to content

Commit

Permalink
Update npm.yml GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-bot committed Jan 6, 2023
1 parent 46d294f commit 22d3d0a
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 1
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: mobsuccess-devops/github-actions-packagejsonlint@master
prettier:
name: Prettier
runs-on: ubuntu-20.04
timeout-minutes: 7
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ^16.13
node-version: 16.16.0
- name: Cache Node Modules
id: cache
uses: actions/cache@v2
uses: actions/cache@v3
env:
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
Expand All @@ -45,21 +45,21 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 7
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ^16.13
node-version: 16.16.0
- name: Cache Node Modules
id: cache
uses: actions/cache@v2
uses: actions/cache@v3
env:
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
Expand All @@ -69,21 +69,21 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 7
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ^16.13
node-version: 16.16.0
- name: Cache Node Modules
id: cache
uses: actions/cache@v2
uses: actions/cache@v3
env:
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
Expand Down

0 comments on commit 22d3d0a

Please sign in to comment.