Skip to content

Commit

Permalink
Merge pull request #22 from KCarlile/12-productize-packaging
Browse files Browse the repository at this point in the history
12 productize packaging
  • Loading branch information
KCarlile authored May 28, 2024
2 parents f942134 + 076b4be commit 938c244
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/demo-hosting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
README.md
LICENSE
**/docs/**
package.json
package-lock.json
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
_Guitar Diagrams JS_ is an open source JavaScript library for drawing guitar chords and scales on an HTML5 canvas.

Project: <https://github.com/KCarlile/guitar-diagrams-js>\
Version: 0.1
Version: 0.1.0

## Project Lead/Owner and Contributors

Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "guitar-diagrams-js",
"version": "0.1.0",
"description": "Guitar Diagrams JS is an open source JavaScript library for drawing guitar chords and scales on an HTML5 canvas.",
"main": "guitar-diagrams.js",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/KCarlile/guitar-diagrams-js.git"
},
"keywords": [
"javascript",
"library",
"guitar",
"diagrams",
"music",
"musician",
"bass",
"mandolin",
"dobro",
"violin",
"cello",
"viola",
"banjo"
],
"author": "Kenny Carlile",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/KCarlile/guitar-diagrams-js/issues"
},
"homepage": "https://github.com/KCarlile/guitar-diagrams-js#readme",
"publishConfig": {
"@KCarlile:registry": "https://npm.pkg.github.com"
}
}

0 comments on commit 938c244

Please sign in to comment.