Skip to content

Commit 4d33418

Browse files
committed
Replace npm run with node --run
1 parent e7f9126 commit 4d33418

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/periodic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
node-version: "22"
1616
- run: node --version
1717
- run: npm i
18-
- run: npm run prepare
18+
- run: node --run prepare
1919
- name: Create issue if tests fail
2020
env:
2121
REPO: ${{ github.repository }}
2222
TOKEN: ${{ secrets.GH_TOKEN }}
2323
run: |
24-
npm t || curl -X "POST" "https://api.github.com/repos/${REPO}/issue" \
24+
node --run test || curl -X "POST" "https://api.github.com/repos/${REPO}/issue" \
2525
-H "Accept: application/vnd.github+json" \
2626
-H "X-GitHub-Api-Version: 2022-11-28" \
2727
-H "Authorization: Bearer ${TOKEN}" \

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
node-version: "22"
1515
- run: node --version
1616
- run: npm i
17-
- run: npm t
18-
- run: npm run format
17+
- run: node --run test
18+
- run: node --run format
1919
- name: commit auto fixes
2020
env:
2121
USERNAME: ${{ github.actor }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"build": "./scripts/build.sh",
5050
"format": "prettier --write .",
5151
"test": "./scripts/test.sh",
52-
"prepublishOnly": "npm run build"
52+
"prepublishOnly": "node --run build"
5353
},
5454
"devDependencies": {
5555
"esbuild": "^0.24.2",

0 commit comments

Comments
 (0)