File tree 4 files changed +55
-4
lines changed
4 files changed +55
-4
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,40 @@ jobs:
16
16
- drizzle-orm
17
17
- drizzle-zod
18
18
runs-on : ubuntu-20.04
19
+ permissions :
20
+ contents : read
21
+ id-token : write
19
22
steps :
20
23
- uses : actions/checkout@v3
21
24
22
25
- uses : actions/setup-node@v3
23
26
with :
24
- node-version : 16
27
+ node-version : 19
25
28
registry-url : ' https://registry.npmjs.org'
26
29
27
30
- uses : pnpm/action-setup@v2
31
+ name : Install pnpm
32
+ id : pnpm-install
28
33
with :
29
34
version : latest
30
- run_install : true
35
+ run_install : false
36
+
37
+ - name : Get pnpm store directory
38
+ id : pnpm-cache
39
+ shell : bash
40
+ run : |
41
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
42
+
43
+ - uses : actions/cache@v3
44
+ name : Setup pnpm cache
45
+ with :
46
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
47
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
48
+ restore-keys : |
49
+ ${{ runner.os }}-pnpm-store-
50
+
51
+ - name : Install dependencies
52
+ run : pnpm install
31
53
32
54
- name : Build (for fork PRs only)
33
55
if : github.event_name == 'pull_request'
Original file line number Diff line number Diff line change @@ -17,13 +17,32 @@ jobs:
17
17
18
18
- uses : actions/setup-node@v3
19
19
with :
20
- node-version : 16
20
+ node-version : 19
21
21
registry-url : ' https://registry.npmjs.org'
22
22
23
23
- uses : pnpm/action-setup@v2
24
+ name : Install pnpm
25
+ id : pnpm-install
24
26
with :
25
27
version : latest
26
- run_install : true
28
+ run_install : false
29
+
30
+ - name : Get pnpm store directory
31
+ id : pnpm-cache
32
+ shell : bash
33
+ run : |
34
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
35
+
36
+ - uses : actions/cache@v3
37
+ name : Setup pnpm cache
38
+ with :
39
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
40
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-pnpm-store-
43
+
44
+ - name : Install dependencies
45
+ run : pnpm install
27
46
28
47
- name : Check preconditions
29
48
id : checks
Original file line number Diff line number Diff line change 9
9
"pack" : " cp package.json dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz" ,
10
10
"publish" : " npm publish package.tgz"
11
11
},
12
+ "publishConfig" : {
13
+ "provenance" : true
14
+ },
12
15
"repository" : {
13
16
"type" : " git" ,
14
17
"url" : " git+https://github.com/drizzle-team/drizzle-orm.git"
Original file line number Diff line number Diff line change 9
9
"publish" : " npm publish package.tgz" ,
10
10
"test" : " ava tests"
11
11
},
12
+ "publishConfig" : {
13
+ "provenance" : true
14
+ },
15
+ "repository" : {
16
+ "type" : " git" ,
17
+ "url" : " git+https://github.com/drizzle-team/drizzle-orm.git"
18
+ },
12
19
"ava" : {
13
20
"files" : [
14
21
" tests/**/*.test.ts" ,
You can’t perform that action at this time.
0 commit comments