Skip to content

Commit 8078bb7

Browse files
committed
feat: Add CI workflow for Yarn and Dependabot configuration
This commit introduces a GitHub Actions workflow to manage Yarn dependencies, including installation, caching, and validation. Additionally, it sets up Dependabot for daily checks of Yarn dependency updates. These changes ensure automation and consistency in dependency management.
1 parent c2f458c commit 8078bb7

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: yarn
4+
directory: /
5+
schedule:
6+
interval: daily

.github/workflows/yarn.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Yarn Install
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Update Yarn dependencies
17+
run: yarn upgrade
18+
19+
- name: Validate package.json and yarn.lock
20+
run: yarn check --verify-tree
21+
22+
- name: Cache Yarn packages
23+
id: yarn-cache
24+
uses: actions/cache@v3
25+
with:
26+
path: node_modules
27+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-node-
30+
31+
- name: Install dependencies
32+
run: yarn install --prefer-offline --no-progress

0 commit comments

Comments
 (0)