@@ -16,26 +16,21 @@ jobs:
1616 steps :
1717 - name : Init
1818 uses : actions/checkout@v2
19+ - name : Install pnpm
20+ 21+ with :
22+ version : 6.32.8
1923 - name : Setup Node
20- uses : actions/setup-node@v2
24+ uses : actions/setup-node@v3
2125 with :
2226 node-version : 16
23- cache : " yarn"
24- - name : Cache Node Modules
25- id : cache-node
26- uses : actions/cache@v2
27- with :
28- path : " **/node_modules"
29- key : cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
30- restore-keys : |
31- cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
32- cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
27+ cache : " pnpm"
3328 - name : Install dependencies
34- run : yarn --prefer-offline --frozen-lockfile
29+ run : pnpm install
3530 - name : Build
36- run : yarn build
31+ run : pnpm build
3732 - name : Run tests
38- run : yarn test
33+ run : pnpm test
3934 env :
4035 UPSTASH_REDIS_URL : ${{ secrets.UPSTASH_REDIS_URL }}
4136 UPSTASH_REDIS_KEY : ${{ secrets.UPSTASH_REDIS_KEY }}
@@ -55,27 +50,22 @@ jobs:
5550 uses : actions/checkout@v2
5651 with :
5752 fetch-depth : 0
53+ - name : Install pnpm
54+ 55+ with :
56+ version : 6.32.8
5857 - name : Setup Node
59- uses : actions/setup-node@v2
58+ uses : actions/setup-node@v3
6059 with :
6160 node-version : 16
62- cache : " yarn"
63- - name : Cache Node Modules
64- id : cache-node
65- uses : actions/cache@v2
66- with :
67- path : " **/node_modules"
68- key : cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
69- restore-keys : |
70- cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
71- cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
61+ cache : " pnpm"
7262 - name : Install dependencies
73- run : yarn --prefer-offline --frozen-lockfile
63+ run : pnpm install
7464 - name : Publish to npm and GitHub
7565 run : |
7666 git config --global user.email "[email protected] " 7767 git config --global user.name "Balázs Orbán"
78- yarn release
68+ pnpm release
7969 env :
8070 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8171 NPM_TOKEN_PKG : ${{ secrets.NPM_TOKEN_PKG }}
@@ -89,22 +79,17 @@ jobs:
8979 steps :
9080 - name : Init
9181 uses : actions/checkout@v2
82+ - name : Install pnpm
83+ 84+ with :
85+ version : 6.32.8
9286 - name : Setup Node
93- uses : actions/setup-node@v2
87+ uses : actions/setup-node@v3
9488 with :
9589 node-version : 16
96- cache : " yarn"
97- - name : Cache Node Modules
98- id : cache-node
99- uses : actions/cache@v2
100- with :
101- path : " **/node_modules"
102- key : cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
103- restore-keys : |
104- cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
105- cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
90+ cache : " pnpm"
10691 - name : Install dependencies
107- run : yarn --prefer-offline --frozen-lockfile
92+ run : pnpm install
10893 - name : Determine version
10994 uses : ./.github/version-pr
11095 id : determine-version
11499 run : |
115100 cd packages/next-auth
116101 echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
117- npm publish --access public --tag experimental
102+ pnpm publish --no-git-checks --access public --tag experimental
118103 env :
119104 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
120105 - name : Comment version on PR
0 commit comments