Skip to content

Commit

Permalink
🏛 Publish (#14)
Browse files Browse the repository at this point in the history
* Adds publish action

* Adds workflow_dispatch option for publish
  • Loading branch information
mrharpo authored Mar 28, 2024
1 parent 5700332 commit 29209cf
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 11 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 🏛 Publish to NPM

on:
release:
types: [published]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: đź“° Checkout
uses: actions/checkout@v4

- name: 🏭 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org

- name: đź“Ą Install dependencies
run: npm ci

- name: đź—ž Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:alpine
WORKDIR /app

RUN yarn global add vite
ENV PATH=node_modules/.bin/:$PATH

EXPOSE 1234

# CMD ["parcel", "watch", "--hmr-port=1234", "/app/src/*"]
CMD ["npm", "run", "dev"]
8 changes: 4 additions & 4 deletions package-lock.json

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

21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leo",
"version": "0.1.0",
"name": "@mrharpo/leo",
"version": "0.2.0",
"description": "sheet music conducting app",
"default": "index.html",
"scripts": {
Expand All @@ -11,12 +11,12 @@
"type": "git",
"url": "git+https://github.com/quaternionmedia/leo.git"
},
"author": "",
"author": "Quaternion Media, LLC",
"license": "MIT",
"bugs": {
"url": "https://github.com/quaternionmedia/leo/issues"
},
"homepage": "https://github.com/quaternionmedia/leo#readme",
"homepage": "https://github.com/quaternionmedia/leo",
"dependencies": {
"hammerjs": "^2.0.8",
"ireal-renderer": "^1.1.0",
Expand All @@ -28,5 +28,16 @@
"buffer": "^6.0.3",
"process": "^0.11.10",
"vite": "^4.4.5"
}
},
"main": "index.html",
"directories": {
"doc": "docs",
"test": "tests"
},
"keywords": [
"pdf",
"annotation",
"sheet music",
"conducting"
]
}

0 comments on commit 29209cf

Please sign in to comment.