This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
[Snyk] Fix for 1 vulnerabilities #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: [pull_request] | |
jobs: | |
lint: | |
name: Check Peer Dependencies | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Semantic Release uses a separate Github Token for publishing | |
# See: https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/github-actions.md#pushing-packagejson-changes-to-a-master-branch | |
persist-credentials: false | |
- uses: mstachniuk/ci-skip@v1 | |
# Cancels the pipeline early if [ci skip] is detected in the commit header. | |
# For example, changelog commits from the Semantic Release toolchain will generate a commit with the [ci skip] in the header. | |
with: | |
fail-fast: true | |
- name: Setup Node.js | |
# This step generates a local .npmrc file and adds the registry URL + :_authToken=${NODE_AUTH_TOKEN} | |
# if the "registry-url" option is set. See: https://github.com/actions/setup-node/blob/c46424eee26de4078d34105d3de3cc4992202b1e/src/main.ts#L44 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org | |
always-auth: true | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
- name: Lint Peer Dependencies | |
run: npx check-peer-dependencies |