Skip to content

Commit 062f3be

Browse files
authored
Merge pull request #858 from acacode/pnpm
pnpm
2 parents 61923fa + ecbd5e5 commit 062f3be

File tree

8 files changed

+2866
-4634
lines changed

8 files changed

+2866
-4634
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
node-version: 22
2020
check-latest: true
2121

22-
- run: yarn install --immutable
22+
- run: corepack enable
2323

24-
- run: yarn format:check
24+
- run: pnpm install --frozen-lockfile
2525

26-
- run: yarn build
26+
- run: pnpm format:check
2727

28-
- run: yarn test
28+
- run: pnpm build
29+
30+
- run: pnpm test

.github/workflows/publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ permissions: read-all
1010
jobs:
1111
publish:
1212
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: read
16+
id-token: write
17+
1318
steps:
1419
- name: Checkout tree
1520
uses: actions/checkout@v4
@@ -19,11 +24,12 @@ jobs:
1924
with:
2025
node-version: 22
2126
check-latest: true
27+
registry-url: https://registry.npmjs.org
2228

23-
- run: yarn install --immutable
29+
- run: corepack enable
2430

25-
- run: yarn build
31+
- run: pnpm install --frozen-lockfile
2632

27-
- run: yarn npm publish --tolerate-republish
33+
- run: pnpm publish --no-git-checks
2834
env:
29-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
/.yarn/*
2-
!/.yarn/releases
31
/dist/
42
/node_modules/

.yarn/releases/yarn-4.3.1.cjs

Lines changed: 0 additions & 894 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
],
3737
"scripts": {
3838
"build": "tsup",
39-
"ci": "biome ci .",
4039
"cli:help": "node index.js -h",
4140
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
4241
"cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts",
4342
"format": "biome format --write .",
4443
"format:check": "biome format .",
44+
"lint": "biome check",
45+
"prepublishOnly": "pnpm build",
4546
"test": "vitest run"
4647
},
4748
"dependencies": {
@@ -72,12 +73,13 @@
7273
"tsup": "8.2.3",
7374
"vitest": "2.0.5"
7475
},
75-
"packageManager": "[email protected]",
76+
"packageManager": "[email protected]",
7677
"engines": {
7778
"node": ">=18.0.0"
7879
},
7980
"publishConfig": {
8081
"access": "public",
82+
"provenance": true,
8183
"registry": "https://registry.npmjs.org"
8284
}
8385
}

0 commit comments

Comments
 (0)