Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dev): switch from yarn to pnpm #1123

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Generate docs
run: yarn build
run: pnpm build

- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Release on NPM
run: yarn semantic-release
run: pnpm semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33 changes: 9 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Lint ${{ matrix.target }}
run: yarn lint:${{ matrix.target }}
run: pnpm lint:${{ matrix.target }}

test:
name: Tests
Expand All @@ -50,16 +46,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Run tests
run: yarn test:ember
run: pnpm test:ember
env:
COVERAGE: true

Expand All @@ -81,16 +73,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"

- name: Install dependencies
run: yarn install --no-lockfile
args: "--no-lockfile"

- name: Run tests
run: yarn test:ember
run: pnpm test:ember

test-compatibility:
name: Compatibility Tests
Expand All @@ -117,13 +106,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Run tests
run: yarn ember try:one ${{ matrix.scenario }} --skip-cleanup
run: pnpm ember try:one ${{ matrix.scenario }} --skip-cleanup
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[ -n "$CI" ] && exit 0

# lint commit message
yarn commitlint --edit "$1"
pnpm commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[ -n "$CI" ] && exit 0

# lint staged files
yarn lint-staged
pnpm lint-staged
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ module.exports = {

_getUikitPath() {
return path.dirname(
/* eslint-disable n/no-extraneous-require */
require("resolve").sync("uikit/package.json", {
require.resolve("uikit/package.json", {
basedir: this.project.root,
}),
);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"stylelint-scss": "5.2.1",
"webpack": "5.88.2"
},
"packageManager": "[email protected]",
"engines": {
"node": "16.* || >= 18"
},
Expand Down
Loading