mirror of
https://github.com/dependabot/fetch-metadata.git
synced 2026-03-12 18:07:12 -04:00
Enable caching of npm install/npm ci for setup-node action (#618)
They now support caching the results of `npm install`/`npm ci`: https://github.blog/changelog/2021-07-02-github-actions-setup-node-now-supports-dependency-caching/
This commit is contained in:
4
.github/workflows/check-uncommitted.yml
vendored
4
.github/workflows/check-uncommitted.yml
vendored
@@ -15,10 +15,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install NPM dependencies
|
||||
run: npm ci
|
||||
|
||||
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -15,16 +15,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm ci
|
||||
- run: npm ci
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
- run: npm run lint
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
- run: npm test
|
||||
|
||||
7
.github/workflows/dependabot-build.yml
vendored
7
.github/workflows/dependabot-build.yml
vendored
@@ -41,13 +41,12 @@ jobs:
|
||||
# Check out using an app token so any pushed changes will trigger checkruns
|
||||
token: ${{ steps.generate_token.outputs.token }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install NPM dependencies
|
||||
run: npm ci
|
||||
- run: npm ci
|
||||
|
||||
- name: Rebuild the dist/ directory
|
||||
run: npm run build
|
||||
|
||||
1
.github/workflows/release-bump-version.yml
vendored
1
.github/workflows/release-bump-version.yml
vendored
@@ -36,6 +36,7 @@ jobs:
|
||||
- uses: actions/setup-node@v4 # bin/bump-version needs npm
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: 'npm'
|
||||
|
||||
- name: Bump the version
|
||||
# Cron runs with no inputs, so version_type will default to 'minor'
|
||||
|
||||
Reference in New Issue
Block a user