Skip to content

Commit

Permalink
chore: tidy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
8e8b2c committed Sep 6, 2024
1 parent e0af291 commit 261a5e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- run: npm run -w @holoom/types build
- run: npm run -w @holoom/client build
- run: npm run -w @holoom/authority build
- run: npm run -w @holoom/sandbox build

- uses: actions/upload-artifact@v4
with:
Expand All @@ -78,6 +79,11 @@ jobs:
name: authority-dist
path: packages/authority/dist
retention-days: 1
- uses: actions/upload-artifact@v4
with:
name: sandbox-dist
path: packages/sandbox/dist
retention-days: 1

tryorama-tests:
name: Tryorama Tests
Expand Down Expand Up @@ -148,21 +154,22 @@ jobs:
- name: Move DNA
run: mv happ_workdir/holoom.dna ./holoom.dna

- name: Download types dist
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
with:
name: types-dist
path: packages/types/dist
- name: Download client dist
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
with:
name: client-dist
path: packages/client/dist
- name: Download external-id-attestor dist
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
with:
name: authority-dist
path: packages/authority/dist
- uses: actions/download-artifact@v4
with:
name: sandbox-dist
path: packages/sandbox/dist

- name: Release binaries
uses: softprops/action-gh-release@v2
Expand All @@ -185,3 +192,7 @@ jobs:
run: npm publish --access public -w @holoom/authority
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish sandbox to npm
run: npm publish --access public -w @holoom/sandbox
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
},
"scripts": {
"build:dna": "scripts/build_dna.sh",
"test:tryorama": "npm run build:dna && npm run prepare-build:types && npm run -w @holoom/client -w @holoom/authority build && npm t -w @holoom/tryorama",
"test:dna": "npm run build:dna && cargo nextest run -j 1",
"prepare-build:types": "rimraf crates/holoom_types/bindings && cargo test --package holoom_types && npm run -w @holoom/types prepare:bindings && npm run -w @holoom/types build",
"build:client": "npm run build -w @holoom/client",
"build:authority": "npm run build -w @holoom/authority",
"test:tryorama": "npm run build:dna && npm run prepare:types && npm run build:packages && npm t -w @holoom/tryorama",
"prepare:types": "rimraf crates/holoom_types/bindings && cargo test --package holoom_types && npm run -w @holoom/types prepare:bindings",
"build:packages": "npm run -w @holoom/types -w @holoom/client -w @holoom/authority -w @holoom/sandbox build",
"example:emissions": "npm run build:packages && cd examples/emissions && docker-compose build && docker-compose up",
"typedoc": "typedoc --options packages/typedoc.json"
},
"devDependencies": {
Expand Down

0 comments on commit 261a5e4

Please sign in to comment.