Skip to content

Commit

Permalink
switch to pnpm (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatethurston authored Aug 2, 2023
1 parent 092a97b commit 6cfbc59
Show file tree
Hide file tree
Showing 21 changed files with 6,640 additions and 6,354 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ jobs:
name: "Lint and Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "yarn"
- run: yarn
- run: yarn lint
- run: yarn test:ci && yarn codecov --token=$CODECOV_TOKEN
node-version-file: ".nvmrc"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: (cd packages/eslint-react-prefer-function-component && pnpm package:build)
# run again to link bin that is now available after package:build
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test:ci && pnpm codecov --token=$CODECOV_TOKEN
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "yarn"
node-version-file: ".nvmrc"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn package:build
- run: cd dist && npm publish
- run: pnpm install --frozen-lockfile
- run: cp README.md LICENSE CHANGELOG.md packages/eslint-react-prefer-function-component
- run: cd packages/eslint-react-prefer-function-component && pnpm package:build && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint:fix
pnpm lint:fix
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16.0
18.16
File renamed without changes.
7 changes: 3 additions & 4 deletions examples/custom-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
"author": "Tate Thurston <tatethurston@gmail.com>",
"license": "ISC",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"eslint": "^8.7.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-prefer-function-component": "1.0.0"
"eslint": "^8.46.0",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-prefer-function-component": "workspace:*"
}
}
Loading

0 comments on commit 6cfbc59

Please sign in to comment.