Skip to content

Commit

Permalink
Merge pull request #27 from facile-it/npm
Browse files Browse the repository at this point in the history
Publish to npm
  • Loading branch information
xzhayon authored Apr 20, 2022
2 parents 8fa2e7c + 82b978c commit ef348eb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "fortepiano",
"version": "0.1.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
Expand All @@ -15,7 +16,7 @@
"type": "git",
"url": "git+https://github.com/facile-it/fortepiano.git"
},
"author": "Alberto Villa <alberto.villa@facile.it>",
"author": "Alberto Villa <villa[email protected]>",
"license": "ISC",
"bugs": {
"url": "https://github.com/facile-it/fortepiano/issues"
Expand Down

0 comments on commit ef348eb

Please sign in to comment.