Skip to content

Commit

Permalink
feat: adding publish yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhalilifar committed Dec 29, 2022
1 parent 3af719e commit ca4c4ca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish
on:
push:
tags:
- v*.*.*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
"axios": "1.2.1",
"nodemon": "2.0.20",
"typescript": "4.9.4"
},
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc",
"start": "nodemon dist",
"postversion": "git push && git push --tags"
}
}

0 comments on commit ca4c4ca

Please sign in to comment.