File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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?
You can’t perform that action at this time.
0 commit comments