Skip to content

Commit e8851c5

Browse files
author
mgabor3141
committed
Migrate from pnpm to Yarn Berry (PnP), add OIDC trusted publishing
1 parent 7a80147 commit e8851c5

23 files changed

Lines changed: 22135 additions & 4785 deletions

File tree

.changeset/sour-parks-mate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"pi-safeguard": patch
66
---
77

8-
Documentation updates
8+
Clean up package metadata, migrate to Yarn Berry

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- uses: pnpm/action-setup@v4
15+
- run: corepack enable
1616

1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: 22
20-
cache: pnpm
20+
cache: yarn
2121

22-
- run: pnpm install --frozen-lockfile
22+
- run: yarn install --immutable
2323

24-
- run: pnpm lint
24+
- run: yarn lint
2525

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

28-
- run: pnpm test
28+
- run: yarn test

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- uses: pnpm/action-setup@v4
19+
- run: corepack enable
2020

2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 22
24-
cache: pnpm
25-
registry-url: https://registry.npmjs.org
24+
cache: yarn
2625

27-
- run: pnpm install --frozen-lockfile
26+
- run: yarn install --immutable
2827

29-
- run: pnpm build
28+
- run: yarn build
3029

3130
- uses: changesets/action@v1
3231
with:
33-
publish: pnpm release
32+
version: yarn ci:version
33+
publish: yarn ci:publish
3434
title: "Version Packages"
3535
commit: "Version Packages"
3636
env:

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
node_modules/
21
dist/
32
*.tsbuildinfo
3+
.vitest/
4+
5+
# Yarn PnP
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/sdks
12+
!.yarn/versions

0 commit comments

Comments
 (0)