From e6fdeecb2b9f602443fd56e448052d39a07511c0 Mon Sep 17 00:00:00 2001 From: aleidk Date: Wed, 23 Oct 2024 15:20:13 -0300 Subject: [PATCH] update workflows --- .forgejo/workflows/publish.yaml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index d470cda..6121d8e 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -1,6 +1,27 @@ -on: [push] +name: Publish package +on: + push: + workflow_dispatch: + jobs: - test: + dependencies: runs-on: docker steps: - - run: echo All Good + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Cache Bun dependencies + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Install Dependencies + run: bun install