diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c2d57f9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: MinaJS Continuous Integration +on: + push: + branches: + - main +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: bun i --no-save + - run: bun run test + release: + name: Release + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - run: bun i --no-save + - run: bun run build + - run: bunx pkg-pr-new publish './packages/klesia-sdk' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index f92c5ed..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Run tests -on: - push: - branches: - - main -jobs: - my-job: - name: my-job - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - - run: bun install - - run: bun run build - - run: bun run test