Skip to content

Commit 9d804c2

Browse files
committed
build: drop yarn, move to npm
1 parent 06c0c47 commit 9d804c2

File tree

5 files changed

+3597
-1921
lines changed

5 files changed

+3597
-1921
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ on: push
44
jobs:
55
update:
66
runs-on: ubuntu-22.04
7-
name: Node 20
7+
name: Node 22
88

99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v4
1212

1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 20
16-
cache: 'yarn'
15+
node-version: 22
16+
cache: 'npm'
1717

18-
- run: yarn install
18+
- run: npm ci
1919

20-
- run: yarn build
20+
- run: npm run build
2121

2222
- name: Test Itself (Random Socket)
2323
id: ssh-socket-action-random

.github/workflows/dist.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
update:
99
permissions:
1010
contents: write
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
name: Commit Dist
1313

1414
steps:
@@ -17,12 +17,12 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 20
21-
cache: 'yarn'
20+
node-version: 22
21+
cache: 'npm'
2222

23-
- run: yarn install
23+
- run: npm ci
2424

25-
- run: yarn build
25+
- run: npm run build
2626

2727
- name: Commit updated dist
2828
uses: stefanzweifel/git-auto-commit-action@v5

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ Store that in GitHub Secrets to securely pass to the action.
4747
## Development
4848
Install package dependencies:
4949
```shell
50-
yarn install
50+
npm install
5151
```
5252

5353
Build `dist/index.js`:
5454
```shell
55-
ncc build index.js
55+
npm run build
5656
```
5757
---
5858

0 commit comments

Comments
 (0)