Skip to content

Commit

Permalink
Working on publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jlkalberer committed Feb 16, 2024
1 parent 6816e39 commit 5a15876
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
# branches: dev

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- run: npm ci
- run: npm build:all
- run: npm test:all
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_PUBLISH }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"scripts": {
"build": "tsc",
"build:deps": "npx lerna run build",
"build:all": "npm run build && npm run build",
"build:all": "npm run build:deps && npm run build",
"build:clean": "rimraf ./build",
"build:watch": "tsc --watch src --watch ../spark-protocol/dist --ignore data",
"lint": "eslint --fix --max-warnings 0 ./src",
Expand All @@ -45,6 +45,7 @@
"start:warn": "ts-node ./src/main.ts --trace-warnings | bunyan",
"test": "jest",
"test:deps": "npx lerna run test",
"test:all": "npm run test:deps && npm run test",
"test:watch": "jest --watch",
"watch": "tsc --watch",
"update-firmware": "node ./node_modules/spark-protocol/dist/scripts/update-firmware-binaries",
Expand Down

0 comments on commit 5a15876

Please sign in to comment.