Skip to content

Commit 7808f2d

Browse files
committed
👷
1 parent c9ed0ae commit 7808f2d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,28 @@ jobs:
138138
working-directory: packages/github-user-contribution-service
139139
env:
140140
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
141+
142+
build-lib:
143+
runs-on: ubuntu-latest
144+
145+
steps:
146+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
147+
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
148+
with:
149+
bun-version: 1.3.12
150+
151+
- run: bun install --frozen-lockfile
152+
153+
- run: bun build:lib
154+
- run: |
155+
./packages/generate-snake-animation/dist/cli.js --github_user=platane --output=snake-github.svg
156+
./packages/generate-snake-animation/dist/cli.js --forgejo_user=codeberg.org/JasterV --output=snake-forgejo.svg?palette=codeberg
157+
./packages/generate-snake-animation/dist/cli.js --gitlab_user=gitlab.com/trizzi --output=snake-gitlab.svg?palette=gitlab
158+
159+
test -f snake-github.svg
160+
test -f snake-forgejo.svg
161+
test -f snake-gitlab.svg
162+
env:
163+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164+
165+
# todo publish npm?

0 commit comments

Comments
 (0)