diff --git a/.github/workflows/demo-hosting.yml b/.github/workflows/demo-hosting.yml index ae54570..3c09b16 100644 --- a/.github/workflows/demo-hosting.yml +++ b/.github/workflows/demo-hosting.yml @@ -42,3 +42,5 @@ jobs: README.md LICENSE **/docs/** + package.json + package-lock.json diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 0000000..f897b06 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -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}} diff --git a/README.md b/README.md index c1f0126..55784c5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ _Guitar Diagrams JS_ is an open source JavaScript library for drawing guitar chords and scales on an HTML5 canvas. Project: \ -Version: 0.1 +Version: 0.1.0 ## Project Lead/Owner and Contributors diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e60abfe --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "guitar-diagrams-js", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "guitar-diagrams-js", + "version": "0.1.0", + "license": "GPL-3.0" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..cd5a5ac --- /dev/null +++ b/package.json @@ -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" + } +}