File tree Expand file tree Collapse file tree 5 files changed +6301
-5340
lines changed
Expand file tree Collapse file tree 5 files changed +6301
-5340
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 tests :
1313 runs-on : ubuntu-latest
14+
15+ strategy :
16+ matrix :
17+ node-version : [20]
18+
1419 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
1922
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
2528 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+
3032 - name : Install dependencies
31- run : yarn --frozen-lockfile --prefer-offline
33+ run : pnpm install
3234
33- - run : yarn type-check
35+ - name : Type check
36+ run : pnpm type-check
3437
35- - run : yarn test
38+ - name : Run tests
39+ run : pnpm test
3640 env :
3741 GITHUB_INTROSPECTION_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3842 GITHUB_E2E_TESTS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 99</p >
1010
1111``` sh
12- yarn add @rena.to/github-blog
12+ npm install @rena.to/github-blog
1313```
1414
1515## API Only
@@ -81,15 +81,14 @@ Also add an label to your slug like `slug:my-first-post`.
8181Here comes github-blog. First install
8282
8383``` sh
84- yarn add @rena.to/github-blog
85- # npm install @rena.to/github-blog
84+ npm install @rena.to/github-blog
8685```
8786
8887Now create a new blog instance passing your repo and your github token.
8988[ Create your token here ⟶] ( https://github.com/settings/tokens ) .
9089
9190``` ts
92- import { GithubBlog } from " @rena.to/github-blog" ;
91+ import { value GithubBlog } from " @rena.to/github-blog" ;
9392
9493const blog = new GithubBlog ({
9594 repo: " <user>/<repo>" , // e.g.: "renatorib/posts"
Original file line number Diff line number Diff line change 99 "scripts" : {
1010 "codegen" : " graphql-codegen -r dotenv-flow/config" ,
1111 "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" ,
1616 "debug" : " node -r dotenv-flow/config src/tmp/debug.js" ,
1717 "docs" : " typedoc src --readme none --githubPages false" ,
1818 "prepare" : " simple-git-hooks"
6262 "typedoc-plugin-markdown" : " ^3.11.2" ,
6363 "typescript" : " ^5.1.3"
6464 },
65- "packageManager" :
" [email protected] " 65+ "packageManager" :
" [email protected] +sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808" 6666}
You can’t perform that action at this time.
0 commit comments