-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Use npm cache in setup-node (#2084)
- Add the action to all jobs using `npm ci` - Unpin from a version to the main `@2` to avoid churn till the next major version
- Loading branch information
Showing
7 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,9 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: npm | ||
|
||
- uses: xt0rted/stylelint-problem-matcher@v1 | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,9 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,9 @@ jobs: | |
# setup-node task is used without a particular version in order to load | ||
# the ESLint problem matchers | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,9 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,9 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: npm | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|