Skip to content

Commit 235414e

Browse files
committed
replace yarn with pnpm in GitHub Actions
1 parent 74e74d6 commit 235414e

File tree

4 files changed

+25
-57
lines changed

4 files changed

+25
-57
lines changed
+10-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
name: 'Prepare Dependencies'
2-
description: 'Prepares all Node and Yarn dependencies'
2+
description: 'Prepares all Node and pnpm dependencies'
33
runs:
44
using: 'composite'
55
steps:
6+
- uses: pnpm/action-setup@v2
7+
name: Install pnpm
8+
with:
9+
version: 8
10+
611
- name: Setup Node.js
7-
uses: actions/setup-node@v3
12+
uses: actions/setup-node@v4
813
with:
9-
node-version: '14'
10-
cache: 'yarn'
14+
cache: 'pnpm'
1115

1216
- name: Install dependencies
1317
shell: bash
14-
run: yarn install --frozen-lockfile
18+
run: pnpm install
19+

.github/workflows/check.yml

+9-22
Original file line numberDiff line numberDiff line change
@@ -12,65 +12,52 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Prepare dependencies
1818
uses: ./.github/actions/prepare-deps
1919

2020
- name: Check formatting with Prettier
21-
run: yarn format:check
22-
23-
# lint:
24-
# name: Lint
25-
# runs-on: ubuntu-latest
26-
# steps:
27-
# - name: Checkout repository
28-
# uses: actions/checkout@v3
29-
30-
# - name: Prepare dependencies
31-
# uses: ./.github/actions/prepare-deps
32-
33-
# - name: Lint
34-
# run: yarn lint
21+
run: pnpm format:check
3522

3623
type-check:
3724
name: Check Types
3825
runs-on: ubuntu-latest
3926
steps:
4027
- name: Checkout repository
41-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
4229

4330
- name: Prepare dependencies
4431
uses: ./.github/actions/prepare-deps
4532

4633
- name: Check TypeScript Types
47-
run: yarn type-check
34+
run: pnpm type-check
4835

4936
build:
5037
name: Build
5138
runs-on: ubuntu-latest
5239
steps:
5340
- name: Checkout repository
54-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
5542

5643
- name: Prepare dependencies
5744
uses: ./.github/actions/prepare-deps
5845

5946
- name: Build
60-
run: yarn build
47+
run: pnpm build
6148

6249
smoke-test:
6350
name: Smoke test
6451
runs-on: ubuntu-latest
6552
steps:
6653
- name: Checkout repository
67-
uses: actions/checkout@v3
54+
uses: actions/checkout@v4
6855

6956
- name: Prepare dependencies
7057
uses: ./.github/actions/prepare-deps
7158

7259
- name: Build
73-
run: yarn build
60+
run: pnpm build
7461

7562
- name: Start
76-
run: yarn start:all
63+
run: pnpm start:all

.github/workflows/release.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

1212
- name: Prepare repository
1313
run: git fetch --unshallow --tags
@@ -16,11 +16,10 @@ jobs:
1616
uses: ./.github/actions/prepare-deps
1717

1818
- name: Build
19-
run: yarn build
19+
run: pnpm build
2020

2121
- name: Create Release
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25-
run: |
26-
yarn release
25+
run: pnpm release

.gitignore

+3-26
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ mini
44
maxi
55
svelte5
66

7-
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,windows,node,yarn
8-
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,windows,node,yarn
7+
# Created by https://www.toptal.com/developers/gitignore/api/node,macos,windows,visualstudiocode
8+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,windows,visualstudiocode
99

1010
### macOS ###
1111
# General
@@ -192,12 +192,6 @@ dist
192192
.history
193193
.ionide
194194

195-
# Support for Project snippet scope
196-
.vscode/*.code-snippets
197-
198-
# Ignore code-workspaces
199-
*.code-workspace
200-
201195
### Windows ###
202196
# Windows thumbnail cache files
203197
Thumbs.db
@@ -224,21 +218,4 @@ $RECYCLE.BIN/
224218
# Windows shortcuts
225219
*.lnk
226220

227-
### yarn ###
228-
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
229-
230-
.yarn/*
231-
!.yarn/releases
232-
!.yarn/patches
233-
!.yarn/plugins
234-
!.yarn/sdks
235-
!.yarn/versions
236-
237-
# if you are NOT using Zero-installs, then:
238-
# comment the following lines
239-
# !.yarn/cache
240-
241-
# and uncomment the following lines
242-
.pnp.*
243-
244-
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,windows,node,yarn
221+
# End of https://www.toptal.com/developers/gitignore/api/node,macos,windows,visualstudiocode

0 commit comments

Comments
 (0)