finamaze_schema 1.59.0 → 1.61.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.
Files changed (31) hide show
  1. package/.github/workflows/publish.yml +14 -64
  2. package/dist/data/onboarding_structure.v1.0.js +3158 -0
  3. package/dist/data/onboarding_structure.v1.0.js.map +1 -0
  4. package/dist/entity/onboarding-schema.entity.js +6 -6
  5. package/dist/entity/onboarding-schema.entity.js.map +1 -1
  6. package/dist/entity/onboarding_answer-option.entity.js +58 -0
  7. package/dist/entity/onboarding_answer-option.entity.js.map +1 -0
  8. package/dist/entity/onboarding_group.entity.js +24 -28
  9. package/dist/entity/onboarding_group.entity.js.map +1 -1
  10. package/dist/entity/onboarding_question.entity.js +44 -28
  11. package/dist/entity/onboarding_question.entity.js.map +1 -1
  12. package/dist/entity/onboarding_sessions.entity.js +16 -14
  13. package/dist/entity/onboarding_sessions.entity.js.map +1 -1
  14. package/dist/entity/onboarding_step.entity.js +25 -25
  15. package/dist/entity/onboarding_step.entity.js.map +1 -1
  16. package/dist/entity/onboarding_substep.entity.js +25 -24
  17. package/dist/entity/onboarding_substep.entity.js.map +1 -1
  18. package/dist/entity/onboarding_user-answer.entity.js +38 -24
  19. package/dist/entity/onboarding_user-answer.entity.js.map +1 -1
  20. package/dist/entity/onboarding_user-progress.entity.js +55 -0
  21. package/dist/entity/onboarding_user-progress.entity.js.map +1 -0
  22. package/dist/index.js +2 -2
  23. package/dist/index.js.map +1 -1
  24. package/dist/migrations/1753088595569-version12.js +16 -0
  25. package/dist/migrations/1753088595569-version12.js.map +1 -0
  26. package/dist/migrations/1754744298478-version8.js +52 -0
  27. package/dist/migrations/1754744298478-version8.js.map +1 -0
  28. package/dist/migrations/1755000000002-version11.js +98 -0
  29. package/dist/migrations/1755000000002-version11.js.map +1 -0
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +1 -2
@@ -1,4 +1,4 @@
1
- name: Publish Package
1
+ name: Publish @finamaze/schema to GitHub Packages
2
2
 
3
3
  on:
4
4
  push:
@@ -8,73 +8,23 @@ on:
8
8
  jobs:
9
9
  publish:
10
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ packages: write
14
+
11
15
  steps:
12
16
  - uses: actions/checkout@v4
13
-
14
- - name: Setup Node.js
17
+ - name: Setup Node.js for GitHub Packages
15
18
  uses: actions/setup-node@v4
16
19
  with:
17
- node-version: '20'
18
-
20
+ node-version: 18
21
+ registry-url: https://npm.pkg.github.com/
22
+ scope: '@finamaze'
19
23
  - name: Install dependencies
20
24
  run: npm install
21
-
22
- - name: Build
25
+ - name: Build TypeScript
23
26
  run: npm run build
24
-
25
- - name: Check version change
26
- id: check_version
27
- run: |
28
- echo "Starting version check..."
29
-
30
- # Get the current version from package.json
31
- CURRENT_VERSION=$(node -p "require('./package.json').version")
32
- echo "Current version from package.json: $CURRENT_VERSION"
33
-
34
- # Fetch the main branch
35
- echo "Fetching main branch..."
36
- git fetch origin main
37
-
38
- # Get the version from main branch
39
- echo "Getting version from main branch..."
40
- MAIN_VERSION=$(git show origin/main:package.json | node -p "require('./package.json').version")
41
- echo "Main branch version: $MAIN_VERSION"
42
-
43
- echo "Comparing versions..."
44
- echo "Current version: $CURRENT_VERSION"
45
- echo "Main branch version: $MAIN_VERSION"
46
-
47
- if [ "$CURRENT_VERSION" != "$MAIN_VERSION" ]; then
48
- echo "Version has changed from $MAIN_VERSION to $CURRENT_VERSION"
49
- echo "should_publish=true" >> $GITHUB_OUTPUT
50
- else
51
- echo "Version has not changed ($CURRENT_VERSION)"
52
- echo "should_publish=false" >> $GITHUB_OUTPUT
53
- fi
54
-
55
- echo "Final decision: should_publish=$(cat $GITHUB_OUTPUT | grep should_publish | cut -d'=' -f2)"
56
-
57
- - name: Google Auth
58
- uses: google-github-actions/auth@v2
59
- with:
60
- credentials_json: ${{ secrets.GCP_SA_KEY }}
61
- project_id: wmx-project-433914
62
-
63
- - name: Set up Cloud SDK
64
- uses: google-github-actions/setup-gcloud@v2
65
-
66
- - name: Configure npm for Artifact Registry
67
- run: |
68
- # Configure npm to use Google Cloud Artifact Registry
69
- gcloud artifacts print-settings npm \
70
- --project=wmx-project-433914 \
71
- --repository=wmx-finamaze-schema \
72
- --location=europe-west1 \
73
- --scope=@finamaze > .npmrc
74
-
75
- # Update the access token
76
- npx google-artifactregistry-auth .npmrc
77
-
78
- - name: Publish Package
79
- if: steps.check_version.outputs.should_publish == 'true'
80
- run: npm publish
27
+ - name: Publish to GitHub Packages
28
+ run: npm publish
29
+ env:
30
+ NODE_AUTH_TOKEN: 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