Skip to content

Commit

Permalink
chore: update gh-pages deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrieh committed May 21, 2024
1 parent 4d784dd commit ffe07d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Deploy on gh-pages

on: workflow_dispatch
on:
push:
branches:
- main

jobs:
deploy:
Expand All @@ -18,12 +21,8 @@ jobs:

- run: bun install --frozen-lockfile

# builds the sdk
- run: bun run build

# builds the docs
- run: cd docs && bun install --frozen-lockfile && bun run build

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test:only": "bun --env-file=.env test --watch --only",
"test:coverage": "bun --env-file=.env test --coverage",
"dev": "tsc -w",
"build": "tsc --project src/tsconfig.build.json --module es2020",
"build": "bun run sdk:build && bun run docs:build",
"lint": "biome lint --apply .",
"format": "biome format --write .",
"check": "biome check --apply .",
Expand All @@ -17,6 +17,7 @@
"docs:dev": "cd docs && bun run dev",
"docs:build": "cd docs && bun run build",
"docs:preview": "cd docs && bun run preview",
"sdk:build": "tsc --project src/tsconfig.build.json --module es2020",
"link": "cd src && bun link"
},
"devDependencies": {
Expand All @@ -27,7 +28,8 @@
"@greymass/abi2core": "^2.0.1",
"@size-limit/preset-big-lib": "^11.1.2",
"@types/bun": "^1.1.1",
"typescript": "5.4.2"
"typescript": "5.4.2",
"vite": "^5.0.7"
},
"trustedDependencies": ["@biomejs/biome"],
"dependencies": {
Expand Down

0 comments on commit ffe07d9

Please sign in to comment.