@openapi-typescript-infra/service 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/nodejs.yml +39 -3
- package/CHANGELOG.md +14 -0
- package/Makefile +3 -1
- package/build/config/schema.d.ts +0 -8
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/config/development.json +0 -5
- package/package.json +1 -1
- package/src/config/schema.ts +0 -9
- package/.github/workflows/npmpublish.yml +0 -48
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
name: Node CI
|
|
2
2
|
|
|
3
|
-
on:
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [assigned, opened, synchronize, reopened]
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
4
9
|
|
|
5
10
|
permissions:
|
|
6
11
|
contents: read
|
|
7
12
|
|
|
8
13
|
jobs:
|
|
9
|
-
|
|
14
|
+
prepare:
|
|
10
15
|
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Cleanup stale actions
|
|
18
|
+
uses: styfle/cancel-workflow-action@0.11.0
|
|
19
|
+
with:
|
|
20
|
+
access_token: ${{ github.token }}
|
|
11
21
|
|
|
22
|
+
build:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
12
24
|
steps:
|
|
13
25
|
- uses: actions/checkout@v3
|
|
14
26
|
- name: Use Node.js 18
|
|
15
27
|
uses: actions/setup-node@v3
|
|
16
28
|
with:
|
|
17
|
-
node-version:
|
|
29
|
+
node-version: 20
|
|
18
30
|
- name: npm install, lint, build, and test
|
|
19
31
|
run: |
|
|
20
32
|
yarn install --immutable
|
|
@@ -23,3 +35,27 @@ jobs:
|
|
|
23
35
|
yarn test
|
|
24
36
|
env:
|
|
25
37
|
CI: true
|
|
38
|
+
|
|
39
|
+
publish-npm:
|
|
40
|
+
needs: build
|
|
41
|
+
permissions:
|
|
42
|
+
contents: write
|
|
43
|
+
issues: write
|
|
44
|
+
id-token: write
|
|
45
|
+
pull-requests: write
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v1
|
|
49
|
+
- uses: actions/setup-node@v3
|
|
50
|
+
with:
|
|
51
|
+
node-version: 20
|
|
52
|
+
registry-url: https://registry.npmjs.org/
|
|
53
|
+
- run: yarn install --immutable
|
|
54
|
+
- run: yarn build
|
|
55
|
+
|
|
56
|
+
- name: Release
|
|
57
|
+
env:
|
|
58
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
59
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
60
|
+
run: |
|
|
61
|
+
yarn dlx semantic-release
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.5.2](https://github.com/openapi-typescript-infra/service/compare/v4.5.1...v4.5.2) (2023-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **make:** only build db when migrations change ([0bee073](https://github.com/openapi-typescript-infra/service/commit/0bee0737c84d8053f62e340f64715c1e2c4f69b3))
|
|
7
|
+
|
|
8
|
+
## [4.5.1](https://github.com/openapi-typescript-infra/service/compare/v4.5.0...v4.5.1) (2023-10-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **config:** remove unused config ([263d084](https://github.com/openapi-typescript-infra/service/commit/263d0841ca630760ddff2f746f73870c4d8eddee))
|
|
14
|
+
|
|
1
15
|
# [4.5.0](https://github.com/openapi-typescript-infra/service/compare/v4.4.0...v4.5.0) (2023-10-19)
|
|
2
16
|
|
|
3
17
|
|
package/Makefile
CHANGED
|
@@ -85,7 +85,9 @@ db-:
|
|
|
85
85
|
|
|
86
86
|
db-clean: db-drop db-ci
|
|
87
87
|
|
|
88
|
-
dbi:
|
|
88
|
+
dbi: src/generated/database.ts
|
|
89
|
+
|
|
90
|
+
src/generated/database.ts: $(wildcard migrations/* migrations/**/*)
|
|
89
91
|
echo "Generating database types"
|
|
90
92
|
DATABASE_URL=postgres://$(PGUSER):$(PGPASSWORD)@$(PGHOST)/$(DB_NAME) yarn kysely-codegen \
|
|
91
93
|
--dialect postgres --schema public \
|
package/build/config/schema.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { BaseConfitSchema } from '@sesamecare-oss/confit';
|
|
2
2
|
import type { Level } from 'pino';
|
|
3
|
-
export interface ServiceConfiguration {
|
|
4
|
-
protocol?: string;
|
|
5
|
-
port?: number;
|
|
6
|
-
host?: string;
|
|
7
|
-
basePath?: string;
|
|
8
|
-
proxy?: string | false;
|
|
9
|
-
}
|
|
10
3
|
export interface ConfigurationItemEnabled {
|
|
11
4
|
enabled?: boolean;
|
|
12
5
|
}
|
|
@@ -47,5 +40,4 @@ export interface ConfigurationSchema extends BaseConfitSchema {
|
|
|
47
40
|
certificate?: string | Uint8Array;
|
|
48
41
|
hostname?: string;
|
|
49
42
|
};
|
|
50
|
-
connections: Record<string, ServiceConfiguration>;
|
|
51
43
|
}
|