Skip to content

Commit

Permalink
feat: release rbac package (#1062)
Browse files Browse the repository at this point in the history
* feat: release rbac package

* chore(api): remove empty noExternal array from tsup config

* chore(deploy_api.yaml): add build step to deploy workflow for API application

* refactor(unit_test.yaml): fix typo in file path for rbac package
refactor(knip.ts): update file path for rbac package in config object

* chore(test_api.yaml): add build step to run pnpm turbo build for api app
  • Loading branch information
chronark authored Feb 27, 2024
1 parent e4bf28d commit d561b57
Show file tree
Hide file tree
Showing 19 changed files with 140 additions and 550 deletions.
9 changes: 9 additions & 0 deletions .changeset/three-ears-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@unkey/api": patch
"@unkey/hono": patch
"@unkey/nextjs": patch
"@unkey/nuxt": patch
"@unkey/rbac": patch
---

Release rbac as separate package
4 changes: 3 additions & 1 deletion .github/workflows/deploy_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ jobs:
- name: Install
uses: ./.github/actions/install


- name: Build
run: pnpm turbo run build --filter=./apps/api

- name: Test Routes
run: pnpm vitest run -c vitest.routes.ts --pool=threads --poolOptions.threads.singleThread --bail=1 --shard=${{matrix.shard}}/8
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ jobs:
- name: Install
uses: ./.github/actions/install

- name: Build
run: pnpm turbo run build --filter=./apps/api

- name: Load Schema into MySQL
run: pnpm drizzle-kit push:mysql
working-directory: internal/db
env:
DRIZZLE_DATABASE_URL: "mysql://unkey:password@localhost:3306/unkey"


- name: Test
run: pnpm vitest run -c vitest.routes.ts --pool=threads --poolOptions.threads.singleThread --bail=1 --shard=${{matrix.shard}}
working-directory: apps/api
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- "./internal/hash"
- "./internal/hash"
- "./internal/keys"
- "./internal/rbac"
- "./pacakges/nextjs"
- "./packages/rbac"
- "./packages/nextjs"
- "./packages/api"
- "./packages/hono"
- "./packages/nuxt"
Expand Down
26 changes: 0 additions & 26 deletions internal/rbac/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config: KnipConfig = {
"internal/db": {
entry: "src/index.ts",
},
"internal/rbac": {
"packages/rbac": {
entry: ["src/index.ts", "**/*.test.ts"],
},
"internal/hash": {
Expand Down
Loading

0 comments on commit d561b57

Please sign in to comment.