Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f2a482

Browse files
committed
migrate from yarn to pnpm
1 parent2008483 commit4f2a482

File tree

5 files changed

+6301
-5340
lines changed

5 files changed

+6301
-5340
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,32 @@ on:
1111
jobs:
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 }}

‎README.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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`.
8181
Here 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

8887
Now 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 {valueGithubBlog }from"@rena.to/github-blog";
9392

9493
const blog=newGithubBlog({
9594
repo:"<user>/<repo>",// e.g.: "renatorib/posts"

‎package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
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"
@@ -62,5 +62,5 @@
6262
"typedoc-plugin-markdown":"^3.11.2",
6363
"typescript":"^5.1.3"
6464
},
65-
"packageManager":"yarn@1.22.19"
65+
"packageManager":"pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
6666
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp