Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(workflow): add cache to workflows using actions/setup-node #404

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'v*'
pull_request: {}
schedule:
- cron: '0 3 * * *' # daily, at 3am
- cron: '0 3 * * *' # daily, at 3am

jobs:
lint:
Expand All @@ -16,9 +16,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
oscard0m marked this conversation as resolved.
Show resolved Hide resolved

- name: get yarn cache dir
id: yarn-cache
Expand Down Expand Up @@ -48,9 +49,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
oscard0m marked this conversation as resolved.
Show resolved Hide resolved

- name: get yarn cache dir
id: yarn-cache
Expand Down Expand Up @@ -79,9 +81,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
cache: npm
oscard0m marked this conversation as resolved.
Show resolved Hide resolved

- name: get yarn cache dir
id: yarn-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
registry-url: 'https://registry.npmjs.org'
Expand Down