chore: migrate from yarn to pnpm
This commit is contained in:
@@ -27,8 +27,11 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NVMRC }}
|
||||
cache: "yarn"
|
||||
cache-dependency-path: yarn.lock
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.15.0
|
||||
|
||||
- name: Log in to private Docker registry
|
||||
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u '${{ secrets.REGISTRY_USERNAME }}' --password-stdin
|
||||
@@ -36,10 +39,9 @@ jobs:
|
||||
- name: Build Storybook
|
||||
run: |
|
||||
rm -Rf node_modules/
|
||||
rm yarn.lock
|
||||
yarn install
|
||||
yarn build
|
||||
yarn build-storybook
|
||||
pnpm install
|
||||
pnpm build
|
||||
pnpm build-storybook
|
||||
docker buildx build --platform linux/amd64 --push -t registry.min.dev/minio/mds .
|
||||
echo "${{ secrets.MDS_DEPLOYER_KUBECONFIG }}" > /tmp/kubecconfig
|
||||
ls -l /tmp/kubecconfig
|
||||
|
||||
@@ -27,20 +27,24 @@ jobs:
|
||||
id: node_version
|
||||
run: echo "$(cat .nvmrc)" && echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ env.NVMRC }}
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9.15.0
|
||||
|
||||
- name: Install Dependencies
|
||||
continue-on-error: false
|
||||
run: |
|
||||
corepack enable
|
||||
yarn install
|
||||
pnpm install
|
||||
|
||||
- name: Check if build is correct
|
||||
continue-on-error: false
|
||||
run: |
|
||||
yarn build
|
||||
pnpm build
|
||||
|
||||
- name: Check if Files are Prettified
|
||||
continue-on-error: false
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
default: build
|
||||
|
||||
build:
|
||||
@(yarn install; yarn build;)
|
||||
@(pnpm install; pnpm build;)
|
||||
|
||||
lint:
|
||||
@(yarn prettier --write . --loglevel warn; cd ..)
|
||||
@(pnpm prettier --write . --loglevel warn; cd ..)
|
||||
|
||||
test:
|
||||
@(yarn install; yarn test;)
|
||||
@(pnpm install; pnpm test;)
|
||||
|
||||
test-warnings:
|
||||
./check-warnings.sh
|
||||
|
||||
+1
-1
@@ -68,5 +68,5 @@
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"packageManager": "yarn@4.6.0"
|
||||
"packageManager": "pnpm@9.15.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user