forked from nextauthjs/next-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move to
pnpm
(nextauthjs#4420)
* feat: pnpm * Update publish script * gitignore the pnpm debug log * Fix workspace * Fix dev commands * feat: pnpm * Update publish script * gitignore the pnpm debug log * Fix workspace * Fix dev commands * chore: fix pnpm install in GitHub Action * fix: update tsconfig path * pnpm run -> pnpm * chore: remove cache-node and add back setup-node * fix: tsconfig dependencies * chore: fix tsconfig path * fix: adapter-test dependencies * fix: setup-node for release-pr * fix: import adapter-test * chore: update workspace dependency for next-auth * fix: test failure * fix: add jest for adapters * fix: jest again * fix: mongo in prisma * fix: `--no-git-checks` for `release-pr` Co-authored-by: Balázs Orbán <[email protected]>
- Loading branch information
1 parent
042ed82
commit 4f29d39
Showing
53 changed files
with
21,800 additions
and
19,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,26 +16,21 @@ jobs: | |
steps: | ||
- name: Init | ||
uses: actions/checkout@v2 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
- name: Cache Node Modules | ||
id: cache-node | ||
uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }} | ||
restore-keys: | | ||
cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }} | ||
cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}- | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: yarn --prefer-offline --frozen-lockfile | ||
run: pnpm install | ||
- name: Build | ||
run: yarn build | ||
run: pnpm build | ||
- name: Run tests | ||
run: yarn test | ||
run: pnpm test | ||
env: | ||
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }} | ||
UPSTASH_REDIS_KEY: ${{ secrets.UPSTASH_REDIS_KEY }} | ||
|
@@ -55,27 +50,22 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
- name: Cache Node Modules | ||
id: cache-node | ||
uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }} | ||
restore-keys: | | ||
cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }} | ||
cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}- | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: yarn --prefer-offline --frozen-lockfile | ||
run: pnpm install | ||
- name: Publish to npm and GitHub | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Balázs Orbán" | ||
yarn release | ||
pnpm release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN_PKG: ${{ secrets.NPM_TOKEN_PKG }} | ||
|
@@ -89,22 +79,17 @@ jobs: | |
steps: | ||
- name: Init | ||
uses: actions/checkout@v2 | ||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 6.32.8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
- name: Cache Node Modules | ||
id: cache-node | ||
uses: actions/cache@v2 | ||
with: | ||
path: "**/node_modules" | ||
key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }} | ||
restore-keys: | | ||
cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }} | ||
cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}- | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: yarn --prefer-offline --frozen-lockfile | ||
run: pnpm install | ||
- name: Determine version | ||
uses: ./.github/version-pr | ||
id: determine-version | ||
|
@@ -114,7 +99,7 @@ jobs: | |
run: | | ||
cd packages/next-auth | ||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | ||
npm publish --access public --tag experimental | ||
pnpm publish --no-git-checks --access public --tag experimental | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Comment version on PR | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ npm-debug.log* | |
yarn-debug.log* | ||
yarn-error.log* | ||
firebase-debug.log | ||
.pnpm-debug.log | ||
|
||
|
||
# Dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,6 @@ | |
"name": "root", | ||
"version": "0.0.0", | ||
"private": true, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*", | ||
"apps/dev", | ||
"docs" | ||
] | ||
}, | ||
"repository": "https://github.com/nextauthjs/next-auth.git", | ||
"scripts": { | ||
"build:app": "turbo run build --scope=next-auth-app --include-dependencies", | ||
|
@@ -17,7 +10,7 @@ | |
"lint:fix": "turbo run lint -- --fix", | ||
"test": "turbo run test --concurrency=1 --scope=!@next-auth/pouchdb-adapter --scope=!next-auth-*", | ||
"setup": "turbo run setup", | ||
"dev": "yarn dev:app", | ||
"dev": "pnpm dev:app", | ||
"dev:app": "turbo run dev --parallel --no-deps --no-cache --scope=next-auth-app", | ||
"dev:docs": "turbo run dev --parallel --no-deps --no-cache --scope=next-auth-docs", | ||
"version:pr": "node ./config/version-pr", | ||
|
@@ -26,6 +19,7 @@ | |
"devDependencies": { | ||
"@actions/core": "^1.6.0", | ||
"@commitlint/parse": "16.0.0", | ||
"@types/node": "^17.0.25", | ||
"@types/semver": "7.3.9", | ||
"@typescript-eslint/eslint-plugin": "^5.10.2", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
|
@@ -47,7 +41,8 @@ | |
"typescript": "^4.5.2" | ||
}, | ||
"engines": { | ||
"node": "^12.19.0 || ^14.15.0 || ^16.13.0" | ||
"node": "^12.19.0 || ^14.15.0 || ^16.13.0", | ||
"pnpm": ">=6.32.3" | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
|
@@ -102,7 +97,7 @@ | |
"**/tests", | ||
"**/__tests__" | ||
], | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"funding": [ | ||
{ | ||
"type": "github", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require("../adapter-test/jest.config") | ||
module.exports = require("@next-auth/adapter-test/jest.config") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.