Skip to content

Commit 5ee26ce

Browse files
authored
adopt pnpm and trusted publishing (#381)
1 parent 4d9bd5a commit 5ee26ce

5 files changed

Lines changed: 1159 additions & 1001 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@ on:
55
release:
66
types: [published]
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
13-
packages: write
1415
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
16+
- uses: actions/checkout@v6
17+
- uses: pnpm/action-setup@v5
18+
with:
19+
version: 10
20+
- uses: actions/setup-node@v6
1721
with:
18-
node-version: 20
19-
registry-url: 'https://registry.npmjs.org'
20-
cache: 'yarn'
21-
- run: yarn --frozen-lockfile
22-
- run: yarn test
22+
node-version: 24
23+
cache: pnpm
24+
- run: pnpm install
25+
- run: pnpm run test
2326
- run: npm publish
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

‎.github/workflows/test.yml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- uses: actions/checkout@v6
14+
- uses: pnpm/action-setup@v5
1515
with:
16-
node-version: 20
17-
cache: yarn
18-
- run: yarn --frozen-lockfile
19-
- run: yarn test
16+
version: 10
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: 24
20+
cache: pnpm
21+
- run: pnpm install
22+
- run: pnpm run test

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ The Observable runtime is open source and released under the [ISC License](https
22

33
## Development
44

5-
We use Yarn 1.x (Classic). To install dependencies:
5+
We use pnpm. To install dependencies:
66

77
```
8-
yarn
8+
pnpm i
99
```
1010

1111
To run tests with Mocha:
1212

1313
```
14-
yarn test
14+
pnpm run test
1515
```

0 commit comments

Comments
 (0)