diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2024-04-22 19:55:25 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2024-04-22 19:55:25 +0200 |
commit | 0740fb31b530e125b1a64ba33bf7428f765c541d (patch) | |
tree | 7c37a23975cf0ebec1ceeb4f8dd51584181d689c /.github | |
parent | 8326eba25f3552496bcca644a4197c9533077afa (diff) | |
download | homer-0740fb31b530e125b1a64ba33bf7428f765c541d.tar.gz homer-0740fb31b530e125b1a64ba33bf7428f765c541d.tar.zst homer-0740fb31b530e125b1a64ba33bf7428f765c541d.zip |
Switch package manager to pnpm
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/integration.yml | 12 | ||||
-rw-r--r-- | .github/workflows/release.yml | 15 |
2 files changed, 21 insertions, 6 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 937bc89..74ce7f6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml | |||
@@ -24,15 +24,19 @@ jobs: | |||
24 | name: Checkout | 24 | name: Checkout |
25 | uses: actions/checkout@v4 | 25 | uses: actions/checkout@v4 |
26 | - | 26 | - |
27 | name: pnpm setup | ||
28 | uses: pnpm/action-setup@v3 | ||
29 | with: | ||
30 | version: 8 | ||
31 | - | ||
27 | name: Use Node.js ${{ matrix.node-version }} | 32 | name: Use Node.js ${{ matrix.node-version }} |
28 | uses: actions/setup-node@v4 | 33 | uses: actions/setup-node@v4 |
29 | with: | 34 | with: |
30 | node-version: ${{ matrix.node-version }} | 35 | node-version: ${{ matrix.node-version }} |
31 | cache: 'yarn' | 36 | cache: 'pnpm' |
32 | - | 37 | - |
33 | name: install dependencies | 38 | name: install dependencies |
34 | run: yarn install --frozen-lockfile --non-interactive | 39 | run: pnpm install --frozen-lockfile |
35 | - | 40 | - |
36 | name: Check code style & potentential issues | 41 | name: Check code style & potentential issues |
37 | run: yarn lint | 42 | run: pnpm lint |
38 | |||
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44a128d..3981172 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml | |||
@@ -14,10 +14,21 @@ jobs: | |||
14 | name: Checkout | 14 | name: Checkout |
15 | uses: actions/checkout@v4 | 15 | uses: actions/checkout@v4 |
16 | - | 16 | - |
17 | name: pnpm setup | ||
18 | uses: pnpm/action-setup@v3 | ||
19 | with: | ||
20 | version: 8 | ||
21 | - | ||
22 | name: Use Node.js 20 | ||
23 | uses: actions/setup-node@v4 | ||
24 | with: | ||
25 | node-version: 20 | ||
26 | cache: 'pnpm' | ||
27 | - | ||
17 | name: Build project | 28 | name: Build project |
18 | run: | | 29 | run: | |
19 | yarn install --frozen-lockfile --non-interactive | 30 | pnpm install --frozen-lockfile |
20 | yarn build | 31 | pnpm build |
21 | - | 32 | - |
22 | name: Create artifact | 33 | name: Create artifact |
23 | working-directory: "dist" | 34 | working-directory: "dist" |