File tree 5 files changed +6301
-5340
lines changed
5 files changed +6301
-5340
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
tests :
13
13
runs-on : ubuntu-latest
14
+
15
+ strategy :
16
+ matrix :
17
+ node-version : [20]
18
+
14
19
steps :
15
- - uses : actions/checkout@v2
16
- - uses : actions/setup-node@v2
17
- with :
18
- node-version : " 16.x"
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
19
22
20
- - name : Get yarn cache directory path
21
- id : yarn-cache-dir-path
22
- run : echo "::set-output name=dir::$(yarn cache dir)"
23
- - uses : actions/cache@v2
24
- id : yarn-cache
23
+ - name : Install pnpm
24
+ uses : pnpm/action-setup@v4
25
+
26
+ - name : Use Node.js ${{ matrix.node-version }}
27
+ uses : actions/setup-node@v4
25
28
with :
26
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
28
- restore-keys : |
29
- ${{ runner.os }}-yarn-
29
+ node-version : ${{ matrix.node-version }}
30
+ cache : " pnpm"
31
+
30
32
- name : Install dependencies
31
- run : yarn --frozen-lockfile --prefer-offline
33
+ run : pnpm install
32
34
33
- - run : yarn type-check
35
+ - name : Type check
36
+ run : pnpm type-check
34
37
35
- - run : yarn test
38
+ - name : Run tests
39
+ run : pnpm test
36
40
env :
37
41
GITHUB_INTROSPECTION_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
42
GITHUB_E2E_TESTS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 9
9
</p >
10
10
11
11
``` sh
12
- yarn add @rena.to/github-blog
12
+ npm install @rena.to/github-blog
13
13
```
14
14
15
15
## API Only
@@ -81,15 +81,14 @@ Also add an label to your slug like `slug:my-first-post`.
81
81
Here comes github-blog. First install
82
82
83
83
``` sh
84
- yarn add @rena.to/github-blog
85
- # npm install @rena.to/github-blog
84
+ npm install @rena.to/github-blog
86
85
```
87
86
88
87
Now create a new blog instance passing your repo and your github token.
89
88
[ Create your token here ⟶] ( https://github.com/settings/tokens ) .
90
89
91
90
``` ts
92
- import { GithubBlog } from " @rena.to/github-blog" ;
91
+ import { value GithubBlog } from " @rena.to/github-blog" ;
93
92
94
93
const blog = new GithubBlog ({
95
94
repo: " <user>/<repo>" , // e.g.: "renatorib/posts"
Original file line number Diff line number Diff line change 9
9
"scripts" : {
10
10
"codegen" : " graphql-codegen -r dotenv-flow/config" ,
11
11
"type-check" : " tsc --noEmit" ,
12
- "dev" : " yarn codegen --watch" ,
13
- "build" : " rm -rf ./dist && yarn tsc --project tsconfig.build.json" ,
14
- "test" : " yarn codegen && yarn jest" ,
15
- "prepublishOnly" : " yarn test && yarn build" ,
12
+ "dev" : " pnpm codegen --watch" ,
13
+ "build" : " rm -rf ./dist && pnpm tsc --project tsconfig.build.json" ,
14
+ "test" : " pnpm codegen && pnpm jest" ,
15
+ "prepublishOnly" : " pnpm test && pnpm build" ,
16
16
"debug" : " node -r dotenv-flow/config src/tmp/debug.js" ,
17
17
"docs" : " typedoc src --readme none --githubPages false" ,
18
18
"prepare" : " simple-git-hooks"
62
62
"typedoc-plugin-markdown" : " ^3.11.2" ,
63
63
"typescript" : " ^5.1.3"
64
64
},
65
- "packageManager" :
" [email protected] "
65
+ "packageManager" :
" [email protected] +sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
66
66
}
You can’t perform that action at this time.
0 commit comments