Skip to content

Commit 9aad6e7

Browse files
committed
dev: migrate to pnpm
1 parent e26239d commit 9aad6e7

File tree

19 files changed

+15516
-23541
lines changed

19 files changed

+15516
-23541
lines changed

.github/workflows/branch-preview.yaml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,28 @@ jobs:
77
name: Build and Deploy
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v3
12-
with:
13-
ref: ${{ github.event.pull_request.head.sha }}
14-
- name: Setup Node
15-
uses: actions/setup-node@v3
16-
with:
17-
node-version: 24
18-
cache: npm
19-
- name: Install Packages
20-
run: npm ci
21-
shell: bash
22-
- name: Build Storybook
23-
run: npm run storybook:build
24-
shell: bash
25-
- name: Upload to S3
26-
uses: gravity-ui/preview-upload-to-s3-action@v1
27-
with:
28-
src-path: storybook-static
29-
dest-path: /md-editor/branches/${{ github.ref_name }}/
30-
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
31-
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.event.pull_request.head.sha }}
14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
cache: true
18+
- name: Setup Node
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version-file: '.nvmrc'
22+
cache: pnpm
23+
- name: Install dependencies
24+
run: pnpm install
25+
- name: Build Storybook
26+
run: pnpm run sb:build
27+
shell: bash
28+
- name: Upload to S3
29+
uses: gravity-ui/preview-upload-to-s3-action@v1
30+
with:
31+
src-path: storybook-static
32+
dest-path: /md-editor/branches/${{ github.ref_name }}/
33+
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
34+
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

.github/workflows/ci.yml

Lines changed: 49 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,62 @@ jobs:
1010
name: Verify Files
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
- name: Setup Node
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 24
19-
cache: npm
20-
- name: Install Packages
21-
run: npm ci
22-
- name: Lint Files
23-
run: npm run lint
24-
- name: Typecheck
25-
run: npm run typecheck
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
cache: true
19+
- name: Setup Node
20+
uses: actions/setup-node@v6
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: pnpm
24+
- name: Install dependencies
25+
run: pnpm install
26+
- name: Lint Files
27+
run: pnpm run lint
28+
- name: Typecheck
29+
run: pnpm run typecheck
2630

2731
tests:
2832
name: Tests
2933
runs-on: ubuntu-latest
3034
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
33-
- name: Setup Node
34-
uses: actions/setup-node@v3
35-
with:
36-
node-version: 24
37-
cache: npm
38-
- name: Install Packages
39-
run: npm ci
40-
- name: Unit Tests
41-
run: npm run test
42-
- name: ESBuild compatability
43-
run: npm run test:esbuild
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
- name: Setup pnpm
38+
uses: pnpm/action-setup@v4
39+
with:
40+
cache: true
41+
- name: Setup Node
42+
uses: actions/setup-node@v6
43+
with:
44+
node-version-file: '.nvmrc'
45+
cache: pnpm
46+
- name: Install dependencies
47+
run: pnpm install
48+
- name: Unit Tests
49+
run: npm run test
50+
- name: ESBuild compatability
51+
run: npm run test:esbuild
4452

4553
check_circular_deps:
4654
name: Check Circular Dependencies
4755
runs-on: ubuntu-latest
4856
steps:
49-
- name: Checkout
50-
uses: actions/checkout@v3
51-
- name: Setup Node
52-
uses: actions/setup-node@v3
53-
with:
54-
node-version: 24
55-
cache: npm
56-
- name: Install Packages
57-
run: npm ci
58-
- name: Check circular dependencies
59-
run: npm run check-circular-deps
57+
- name: Checkout
58+
uses: actions/checkout@v4
59+
- name: Setup pnpm
60+
uses: pnpm/action-setup@v4
61+
with:
62+
cache: true
63+
- name: Setup Node
64+
uses: actions/setup-node@v6
65+
with:
66+
node-version-file: '.nvmrc'
67+
cache: pnpm
68+
- name: Install dependencies
69+
run: pnpm install
70+
- name: Check circular dependencies
71+
run: npm run check-circular-deps

.github/workflows/main-preview.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@ jobs:
99
name: Build and Deploy
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v4
14-
- name: Setup Node
15-
uses: actions/setup-node@v4
16-
with:
17-
node-version: 24
18-
cache: npm
19-
- name: Install Packages
20-
run: npm ci
21-
shell: bash
22-
- name: Build Storybook
23-
run: npm run storybook:build
24-
shell: bash
25-
- name: Upload to S3
26-
uses: gravity-ui/preview-upload-to-s3-action@v1
27-
with:
28-
src-path: storybook-static
29-
dest-path: /md-editor/main/
30-
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
31-
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
cache: true
18+
- name: Setup Node
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version-file: '.nvmrc'
22+
cache: pnpm
23+
- name: Install dependencies
24+
run: pnpm install
25+
- name: Build Storybook
26+
run: npm run sb:build
27+
shell: bash
28+
- name: Upload to S3
29+
uses: gravity-ui/preview-upload-to-s3-action@v1
30+
with:
31+
src-path: storybook-static
32+
dest-path: /md-editor/main/
33+
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
34+
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

.github/workflows/pr-preview-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
steps:
1111
- uses: gravity-ui/preview-build-action@v2
1212
with:
13-
node-version: 24
13+
node-version-file: '.nvmrc'

.github/workflows/pr-visual-tests.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ jobs:
1010
container:
1111
image: mcr.microsoft.com/playwright:v1.49.0-jammy
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
1517
with:
16-
node-version: 24
17-
cache: npm
18-
- name: Install Packages
19-
run: npm ci
18+
cache: true
19+
- name: Setup Node
20+
uses: actions/setup-node@v6
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: pnpm
24+
- name: Install dependencies
25+
run: pnpm install
2026
- name: Run Visual Tests
21-
run: npm run playwright
27+
run: pnpm run playwright
2228
env:
2329
CI: 'true'
2430
- name: Upload Playwright Report

.github/workflows/prerelease.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- name: Setup Node
12-
uses: actions/setup-node@v3
12+
uses: actions/setup-node@v6
1313
with:
14-
node-version: 24
14+
node-version-file: '.nvmrc'
1515
registry-url: 'https://registry.npmjs.org'
1616
cache: 'npm'
1717
- run: npm ci

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1717
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
18-
node-version: 24
18+
node-version-file: '.nvmrc'
1919
default-branch: ${{ github.ref_name != 'main' && github.ref_name || null }}
2020
npm-dist-tag: ${{ github.ref_name != 'main' && 'untagged' || 'latest' }}
2121
changelog-types: >

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
registry=https://registry.npmjs.org/
22
save-exact=true
3+
update-notifier=false
4+
auto-install-peers=true

0 commit comments

Comments
 (0)