Skip to content

Commit

Permalink
add github publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Galkon committed Feb 14, 2023
1 parent 20f2df5 commit d178dc4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Publish package to GitHub Packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/dist
/node_modules
/doc
/doc
.DS_STORE
.idea/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/
DEVSETUP.md
README.md
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Topgg-Volunteer-Staff/topgg-voting-node-sdk.git"
"url": "https://github.com/top-gg/topgg-voting-node-sdk.git"
},
"bugs": {
"url": "https://github.com/Topgg-Volunteer-Staff/topgg-voting-node-sdk/issues"
"url": "https://github.com/top-gg/topgg-voting-node-sdk/issues"
},
"author": "Top.gg <support@top.gg> (https://top.gg)",
"license": "ISC",
Expand All @@ -28,4 +28,4 @@
"typedoc": "^0.23.20",
"typescript": "^4.8.4"
}
}
}

0 comments on commit d178dc4

Please sign in to comment.