Skip to content

Commit

Permalink
feat(Internal): ✨ migrated yarn to pnpm (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB committed Aug 20, 2023
1 parent 4ef265c commit a874947
Show file tree
Hide file tree
Showing 35 changed files with 13,805 additions and 20,887 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*.svg
website/build
*.json
build/
23 changes: 9 additions & 14 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ jobs:
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node v16
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
cache: 'yarn'
cache: 'pnpm'

- name: Install dependencies
run: yarn install
run: pnpm i

- name: Get the previous version
id: old_version
Expand All @@ -72,11 +76,11 @@ jobs:
- name: Update pre-release version
if: ${{ inputs.pre-release }}
run: yarn prerelease
run: pnpm prerelease

- name: Update release version
if: ${{ ! inputs.pre-release }}
run: yarn release
run: pnpm release

- name: Get the new version
id: version
Expand All @@ -87,7 +91,7 @@ jobs:
- name: Generate Change log
if: ${{ steps.version.outputs.version != null }}
run: |
yarn changelog --from v${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
pnpm changelog --from v${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
- name: Upload updated version related files to artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -237,15 +241,6 @@ jobs:
- name: Push updated version files
uses: EndBug/add-and-commit@v9
with:
add: "[
'core-java/pom.xml',
'lerna.json',
'CHANGELOG.md',
'website/package.json',
'README.md',
'package.json',
'website/docs/framework-docs/getting-started/usage.md',
]"
message: |
chore(Internal): :bookmark: released v${{ needs.prepare.outputs.new-version }} to maven central
push: true
Expand Down
27 changes: 21 additions & 6 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,43 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: latest

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache: 'pnpm'

- name: Install dependencies
run: yarn
run: pnpm i

- name: Build site
run: yarn build:site
run: pnpm build:site

gh-release:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: latest

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
cache: 'pnpm'

- name: Install dependencies
run: yarn
run: pnpm i

- name: Build site
run: yarn build:site
run: pnpm build:site

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
*.iml
.DS_Store

.pnp.*
**/.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!**/.yarn/sdks
/node_modules
node_modules/

.changelog
.docusaurus/
Expand Down
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ tasks:
- name: Build Java project
command: mvn -f core-java/pom.xml clean install -DskipTests
- name: Build Website
init: yarn install
command: yarn build:site
init: pnpm i
command: pnpm build:site
4 changes: 2 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
yarn build:site
pnpm lint-staged
pnpm build:site
mvn clean install -f core-java/pom.xml -DskipTests
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
pnpm commitlint --edit $1
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
website/.docusaurus
website/build
**/.yarn
**/.vscode
.vscode/
.github/
core-java/
sample-tests/
.pnp.*
*.md*
*.xml
build/
7 changes: 0 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,5 @@
"Internal"
],
"git.enableCommitSigning": true,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

550 changes: 0 additions & 550 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/bin/eslint.js

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/eslint/lib/api.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/eslint/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions .yarn/sdks/integrations.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/prettier/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/prettier/package.json

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/bin/tsc

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/bin/tsserver

This file was deleted.

20 changes: 0 additions & 20 deletions .yarn/sdks/typescript/lib/tsc.js

This file was deleted.

Loading

0 comments on commit a874947

Please sign in to comment.