@taruvi/sdk 1.3.8-beta.0 → 1.3.9-beta.0
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.
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, beta]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
with:
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: '20'
|
|
18
|
+
registry-url: 'https://registry.npmjs.org'
|
|
19
|
+
|
|
20
|
+
- name: Get secrets from Infisical
|
|
21
|
+
uses: Infisical/secrets-action@v1.0.7
|
|
22
|
+
with:
|
|
23
|
+
client-id: ${{ secrets.INFISICAL_CLIENT_ID }}
|
|
24
|
+
client-secret: ${{ secrets.INFISICAL_CLIENT_SECRET }}
|
|
25
|
+
env-slug: taruvi-test
|
|
26
|
+
project-slug: taruvi-qmc-d
|
|
27
|
+
domain: "https://environment.eoxvantage.com"
|
|
28
|
+
|
|
29
|
+
- run: npm install
|
|
30
|
+
|
|
31
|
+
- run: npm test
|
|
32
|
+
|
|
33
|
+
- name: Check if version changed
|
|
34
|
+
id: version_check
|
|
35
|
+
run: |
|
|
36
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
37
|
+
echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
|
38
|
+
|
|
39
|
+
if git tag | grep -q "^v${CURRENT_VERSION}$"; then
|
|
40
|
+
echo "changed=false" >> $GITHUB_OUTPUT
|
|
41
|
+
else
|
|
42
|
+
echo "changed=true" >> $GITHUB_OUTPUT
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
- name: Tag release
|
|
46
|
+
if: steps.version_check.outputs.changed == 'true'
|
|
47
|
+
run: |
|
|
48
|
+
git config user.name "github-actions[bot]"
|
|
49
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
50
|
+
git tag "v${{ steps.version_check.outputs.current_version }}"
|
|
51
|
+
git push origin "v${{ steps.version_check.outputs.current_version }}"
|
|
52
|
+
|
|
53
|
+
- name: Publish (main)
|
|
54
|
+
if: steps.version_check.outputs.changed == 'true'
|
|
55
|
+
run: npm publish --access public
|
|
56
|
+
env:
|
|
57
|
+
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}
|
package/package.json
CHANGED
package/src/lib/users/types.ts
CHANGED
|
@@ -15,8 +15,7 @@ export interface UserCreateRequest {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface UserData {
|
|
18
|
-
id:
|
|
19
|
-
uuid?: string
|
|
18
|
+
id: string
|
|
20
19
|
username: string
|
|
21
20
|
email: string
|
|
22
21
|
first_name: string
|
|
@@ -33,6 +32,7 @@ export interface UserData {
|
|
|
33
32
|
attributes?: Record<string, unknown>
|
|
34
33
|
missing_attributes?: string[]
|
|
35
34
|
roles?: UserRole[]
|
|
35
|
+
icon_url?: string
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export interface UserGroup {
|