Skip to content

Commit d5b8971

Browse files
committed
RV-AD [ENH] - enhance support.
1 parent 7b177b9 commit d5b8971

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '20.x'
17+
registry-url: 'https://registry.npmjs.org'
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Publish to NPM
26+
run: npm publish
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,5 @@
6363
},
6464
"engines": {
6565
"node": ">=14.0.0"
66-
},
67-
"publishConfig": {
68-
"registry": "https://npm.pkg.github.com/"
6966
}
7067
}

0 commit comments

Comments
 (0)