Skip to content

Commit 6d62e7b

Browse files
authored
feat: migrated from yarn to pnpm (#DS-2687) (koobiq#209)
1 parent 5df8982 commit 6d62e7b

File tree

23 files changed

+19018
-22231
lines changed

23 files changed

+19018
-22231
lines changed

.github/workflows/actions/build-docs/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66
- name: Build Documentation
77
shell: bash
88
run: |
9-
yarn run build:docs-examples-module
10-
yarn run build:docs-examples
11-
yarn run build:docs-content && yarn run build:package-docs-content
12-
yarn run docs:prod-build:aot
9+
pnpm run build:docs-examples-module
10+
pnpm run build:docs-examples
11+
pnpm run build:docs-content && pnpm run build:package-docs-content
12+
pnpm run docs:prod-build:aot

.github/workflows/actions/build-packages/entrypoint.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ fi
99
set -Eeuo pipefail
1010

1111
echo "::group:: Build CDK ..."
12-
yarn run build:cdk
12+
pnpm run build:cdk
1313
echo '::endgroup::'
1414

1515
echo "::group:: Build Components ..."
16-
yarn run build:components
16+
pnpm run build:components
1717
echo '::endgroup::'
1818

1919
echo "::group:: Luxon Adapter ..."
20-
yarn run build:angular-luxon-adapter
20+
pnpm run build:angular-luxon-adapter
2121
echo '::endgroup::'
2222

2323
echo "::group:: Moment Adapter ..."
24-
yarn run build:angular-moment-adapter
24+
pnpm run build:angular-moment-adapter
2525
echo '::endgroup::'
2626

2727
echo "::group:: SCSS Styles ..."
28-
yarn run styles:built-all
28+
pnpm run styles:built-all
2929
echo '::endgroup::'
3030

3131
echo "::group:: CLI ..."
32-
yarn run build:cli
32+
pnpm run build:cli
3333
echo '::endgroup::'
3434

3535
echo "::group:: Schematics ..."
36-
yarn run build:schematics
36+
pnpm run build:schematics
3737
echo '::endgroup::'

.github/workflows/actions/generate-changelog/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
id: generate-changelog
1515
shell: bash
1616
run: |
17-
yarn run release:extract-changelog
17+
pnpm run release:extract-changelog
1818
changelog=$(cat ./CHANGELOG_CURRENT.md)
1919
2020
# Output multiline strings: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Setup pnpm
2+
description: Common setup steps used by our workflows
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Setup pnpm
7+
uses: pnpm/action-setup@v3
8+
with:
9+
version: 9.7.0
10+
11+
- name: Setup node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version-file: .nvmrc
15+
registry-url: https://registry.npmjs.org
16+
cache: pnpm
17+
18+
- name: Install node dependencies
19+
shell: bash
20+
run: pnpm install --frozen-lockfile

.github/workflows/actions/setup-yarn/action.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Setup Yarn
18-
uses: ./.github/workflows/actions/setup-yarn
17+
- name: Setup pnpm
18+
uses: ./.github/workflows/actions/setup-pnpm
1919

2020
- name: Build packages
2121
uses: ./.github/workflows/actions/build-packages
2222

2323
- name: API Golden Checks
24-
run: yarn run check-api
24+
run: pnpm run check-api
2525

2626
- name: Linters
2727
run: |
28-
yarn run cspell --no-progress
29-
yarn run prettier
30-
yarn run stylelint --max-warnings=0
31-
yarn run eslint --max-warnings=0
28+
pnpm run cspell --no-progress
29+
pnpm run prettier
30+
pnpm run stylelint --max-warnings=0
31+
pnpm run eslint --max-warnings=0
3232
3333
- name: Unit
3434
run: |
35-
yarn run unit:cdk
36-
yarn run unit:components
37-
yarn run unit:angular-moment-adapter
38-
yarn run unit:angular-luxon-adapter
39-
yarn run unit:schematics
35+
pnpm run unit:cdk
36+
pnpm run unit:components
37+
pnpm run unit:angular-moment-adapter
38+
pnpm run unit:angular-luxon-adapter
39+
pnpm run unit:schematics
4040
4141
- name: License validation
42-
run: yarn run validate:license
42+
run: pnpm run validate:license

.github/workflows/docs-next.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Setup Yarn
22-
uses: ./.github/workflows/actions/setup-yarn
21+
- name: Setup pnpm
22+
uses: ./.github/workflows/actions/setup-pnpm
2323

2424
- name: Build packages
2525
uses: ./.github/workflows/actions/build-packages

.github/workflows/docs-stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Setup Yarn
20-
uses: ./.github/workflows/actions/setup-yarn
19+
- name: Setup pnpm
20+
uses: ./.github/workflows/actions/setup-pnpm
2121

2222
- name: Build packages
2323
uses: ./.github/workflows/actions/build-packages

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
repository: ${{github.event.pull_request.head.repo.full_name}}
2323
fetch-depth: 0
2424

25-
- name: Setup Yarn
26-
uses: ./.github/workflows/actions/setup-yarn
25+
- name: Setup pnpm
26+
uses: ./.github/workflows/actions/setup-pnpm
2727

2828
- name: Build Packages
2929
uses: ./.github/workflows/actions/build-packages

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- name: Setup Yarn
24-
uses: ./.github/workflows/actions/setup-yarn
23+
- name: Setup pnpm
24+
uses: ./.github/workflows/actions/setup-pnpm
2525

2626
- name: Build packages
2727
uses: ./.github/workflows/actions/build-packages

0 commit comments

Comments
 (0)