Skip to content

Commit 61f02c1

Browse files
authored
build: replace deprecated pkg with @yao-pkg/pkg (#868)
1 parent f00bb19 commit 61f02c1

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

.github/workflows/build.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ on:
99
- master
1010

1111
jobs:
12+
build-pkg:
13+
runs-on: ubuntu-24.04
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '22'
22+
cache: 'pnpm'
23+
24+
- run: pnpm install --frozen-lockfile
25+
- run: sudo npm install -g @yao-pkg/pkg
26+
27+
- run: npm run build-pkg
28+
29+
- run: dist-pkg/flood-linuxstatic-x64 --help
30+
1231
build-real:
1332
runs-on: ubuntu-24.04
1433

@@ -33,7 +52,7 @@ jobs:
3352

3453
build:
3554
# so we do not need to update GitHub repo config
36-
needs: build-real
55+
needs: [build-real, build-pkg]
3756
runs-on: ubuntu-latest
3857

3958
strategy:

.github/workflows/publish-rolling.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
sudo wget https://github.com/jesec/ldid-static/releases/download/v2.1.4/ldid-amd64 -O /usr/local/bin/ldid
196196
sudo chmod +x /usr/local/bin/ldid
197197
198-
- run: sudo npm install -g pkg
198+
- run: sudo npm install -g @yao-pkg/pkg
199199

200200
- uses: actions/download-artifact@v4
201201
with:

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
"dist/**/*.map"
3939
],
4040
"targets": [
41-
"node18-linuxstatic-x64",
42-
"node18-linuxstatic-arm64",
43-
"node18-macos-x64",
44-
"node18-macos-arm64",
45-
"node18-win-x64",
46-
"node18-win-arm64"
41+
"node22-linuxstatic-x64",
42+
"node22-linuxstatic-arm64",
43+
"node22-macos-x64",
44+
"node22-macos-arm64",
45+
"node22-win-x64",
46+
"node22-win-arm64"
4747
]
4848
},
4949
"scripts": {

0 commit comments

Comments
 (0)