Skip to content

Commit 845b455

Browse files
authored
Merge pull request #45 from malang-dev/corepack-updates
feat: enable corepack in github action
2 parents 9f431c9 + b17e41c commit 845b455

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Run CI
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- master
7-
tags:
7+
tags:
88
- v*
99
pull_request:
10-
branches:
10+
branches:
1111
- "*"
1212

1313
jobs:
@@ -23,6 +23,14 @@ jobs:
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
registry-url: https://registry.npmjs.org
26+
27+
- name: Enable corepack
28+
shell: bash
29+
run: corepack enable yarn
30+
31+
- name: Enable yarn cache
32+
uses: actions/setup-node@v6
33+
with:
2634
cache: yarn
2735

2836
- run: yarn install --frozen-lockfile

.github/workflows/publish-release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,16 @@ jobs:
6060
- uses: actions/checkout@v6
6161
- uses: actions/setup-node@v6
6262
with:
63-
node-version: 22.x
63+
node-version: 20.x
6464
registry-url: https://registry.npmjs.org
65+
66+
- name: Enable corepack
67+
shell: bash
68+
run: corepack enable yarn
69+
70+
- name: Enable yarn cache
71+
uses: actions/setup-node@v6
72+
with:
6573
cache: yarn
6674

6775
- name: Update package.json version

0 commit comments

Comments
 (0)