Skip to content

Commit

Permalink
feat: first try for release
Browse files Browse the repository at this point in the history
  • Loading branch information
stanvanrooy committed Mar 22, 2024
1 parent 1ab26ce commit 1e68a05
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/realease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to NPM
on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"version": "0.1.0",
"name": "@elfsquad/tsdoc-parser",
"main": "dist/parser.js",
"scripts": {
"build": "tsc",
"generate": "tsc && node ./dist/bin.js"
},
"files": [
"dist"
],
"bin": {
"generate-docs-from-ts": "dist/bin.js"
"generate-docs-from-ts": "./dist/bin.js"
},
"dependencies": {
"@microsoft/tsdoc": "^0.14.2",
Expand Down

0 comments on commit 1e68a05

Please sign in to comment.