Skip to content

Commit

Permalink
chore: add graph
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Sep 11, 2023
1 parent e823afe commit 3df539d
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 8 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy graph site to Pages

on:
push:
branches: ["main"]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
node-version-file: '.nvmrc'
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build with Turbo graph
run: pnpm graph
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./graph

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ public/dist

# testing
coverage

# graph
graph/
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@

</div>

<div align="center">

[OFFICIAL DOCS](https://image.fepack.org) | [DEPENDENCY GRAPH](https://graph.image.fepack.org) | [CONTRIBUTING](https://github.com/fepack/image/pulls) | [LICENSE](./LICENSE)

</div>

# @fepack/image
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build": "turbo run build",
"dev": "turbo run dev",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"graph": "rimraf ./graph && mkdir graph && turbo run build --graph=graph/index.html",
"lint": "turbo run lint",
"lint:pack": "packlint sort -R",
"lint:pub": "turbo run lint:pub",
Expand All @@ -34,6 +35,7 @@
"packlint": "^0.2.4",
"prettier": "^2.5.1",
"publint": "^0.2.2",
"rimraf": "^5.0.1",
"turbo": "latest",
"typescript": "^5.1.6"
}
Expand Down
98 changes: 90 additions & 8 deletions pnpm-lock.yaml

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

0 comments on commit 3df539d

Please sign in to comment.