Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxidragon committed Dec 21, 2023
1 parent bbf2996 commit ed41448
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build
run: npm run prepublish
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dev": "node ./dev.js",
"dev-ts": "yarn run prepublish && npx ts-node ./dev.ts"
},
"repository": "https://github.com/Capure/vulcan-api-js.git",
"repository": "https://github.com/avorty/vulcan-api-js.git",
"author": "Capure",
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit ed41448

Please sign in to comment.