Skip to content

Commit ed41448

Browse files
committed
Update publish.yml
1 parent bbf2996 commit ed41448

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/publish.yml

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev": "node ./dev.js",
1111
"dev-ts": "yarn run prepublish && npx ts-node ./dev.ts"
1212
},
13-
"repository": "https://github.com/Capure/vulcan-api-js.git",
13+
"repository": "https://github.com/avorty/vulcan-api-js.git",
1414
"author": "Capure",
1515
"license": "MIT",
1616
"dependencies": {

0 commit comments

Comments
 (0)