Skip to content

Commit ab3d78a

Browse files
committed
Update GH Action to use npm
1 parent 721908b commit ab3d78a

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,25 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: pnpm/action-setup@v4
11+
- uses: actions/checkout@v4
1312
- uses: actions/setup-node@v4
1413
with:
15-
node-version: 20
16-
cache: 'pnpm'
17-
- run: pnpm install --frozen-lockfile && pnpm run build
14+
node-version: 22
15+
cache: 'npm'
16+
- run: npm ci && npm run build
1817
# - run: npm test
1918

2019
release:
2120
needs: build
2221
runs-on: ubuntu-latest
2322
steps:
24-
- uses: actions/checkout@v3
25-
- uses: pnpm/action-setup@v4
23+
- uses: actions/checkout@v4
2624
- uses: actions/setup-node@v4
2725
with:
28-
node-version: 20
26+
node-version: 22
2927
registry-url: 'https://registry.npmjs.org'
30-
cache: 'pnpm'
31-
- run: pnpm install --frozen-lockfile && pnpm run build
28+
cache: 'npm'
29+
- run: npm ci && npm run build
3230
- name: Publish package on NPM 📦
3331
run: npm publish
3432
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"format": "prettier nodes --write",
2626
"lint": "eslint nodes package.json",
2727
"lintfix": "eslint nodes package.json --fix",
28-
"prepublishOnly": "npm build && npm lint -c .eslintrc.prepublish.js nodes package.json"
28+
"prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes package.json"
2929
},
3030
"files": [
3131
"dist"

0 commit comments

Comments
 (0)