Skip to content

Commit

Permalink
(experiment) migrate from yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
phndiaye committed Dec 28, 2023
1 parent 1593088 commit a6d0820
Show file tree
Hide file tree
Showing 4 changed files with 16,751 additions and 16,105 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,46 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE_VERSION }}'
cache: 'yarn'
cache: 'pnpm'
- name: Install Dependencies
run: yarn --prefer-offline --frozen-lockfile
run: pnpm install
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Lint
run: yarn lint:js
run: pnpm lint:js
- name: Test
run: yarn test:ember
run: pnpm test:ember
build:
runs-on: ubuntu-latest
needs: test
if: contains(github.ref, 'refs/tags/v')
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE_VERSION }}'
cache: 'yarn'
cache: 'pnpm'
- name: Install Dependencies
run: yarn --prefer-offline --frozen-lockfile
run: pnpm install
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Ember Build
run: yarn run ember build --silent
run: pnpm ember build --silent
- name: Webpack assets workaround fix
run: |
cp -R public/assets/fonts app/styles/core
- name: Storybook Build
run: yarn build-storybook --quiet
run: pnpm build-storybook --quiet
- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
with:
Expand All @@ -72,12 +78,15 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '${{ env.NODE_VERSION }}'
cache: 'yarn'
cache: 'pnpm'
- name: Install Dependencies
run: yarn --prefer-offline --frozen-lockfile
run: pnpm install
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Publish
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"test": "tests"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
Expand All @@ -40,6 +41,8 @@
"@fortawesome/fontawesome-pro": "git+ssh://[email protected]/upfluence/fontawesome-pro.git",
"babel-plugin-debug-macros": "^0.3.1",
"bootstrap": "^3.3.7",
"broccoli-funnel": "^3.0.8",
"broccoli-merge-trees": "^4.2.0",
"calculate-cache-key-for-tree": "^2.0.0",
"ember-auto-import": "^2.7.2",
"ember-cli-babel": "^7.26.10",
Expand Down Expand Up @@ -74,8 +77,6 @@
"@storybook/ember-cli-storybook": "^0.4.0",
"@tsconfig/ember": "^3.0.3",
"@types/ember": "^4.0.10",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.10",
"@types/ember__array": "^4.0.9",
"@types/ember__component": "^4.0.21",
Expand All @@ -98,7 +99,7 @@
"@types/rsvp": "^4.0.8",
"@types/sinon": "^10.0.2",
"@typescript-eslint/parser": "^5.0.0",
"babel-eslint": "^10.1.0",
"@babel/eslint-parser": "^7.23.3",
"babel-loader": "^8.1.0",
"ember-cli": "~3.28.6",
"ember-cli-inject-live-reload": "^2.1.0",
Expand All @@ -121,7 +122,6 @@
"loader.js": "^4.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"qunit": "^2.20.0",
"qunit-dom": "^3.0.0",
"typescript": "^5.3.3",
"webpack": "5"
Expand Down
Loading

0 comments on commit a6d0820

Please sign in to comment.