@insignia-education/api-sdk-js 0.15.66 → 0.15.67
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.
|
@@ -12,6 +12,8 @@ permissions:
|
|
|
12
12
|
jobs:
|
|
13
13
|
publish:
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
|
+
outputs:
|
|
16
|
+
version: ${{ steps.bump.outputs.version }}
|
|
15
17
|
steps:
|
|
16
18
|
- uses: actions/checkout@v6
|
|
17
19
|
|
|
@@ -24,7 +26,11 @@ jobs:
|
|
|
24
26
|
- run: npm run build --if-present
|
|
25
27
|
# npm test disabled: integration suite needs a live api backend, no CI service for it yet
|
|
26
28
|
|
|
27
|
-
-
|
|
29
|
+
- name: Bump patch version
|
|
30
|
+
id: bump
|
|
31
|
+
run: |
|
|
32
|
+
npm version patch --no-git-tag-version
|
|
33
|
+
echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
|
|
28
34
|
|
|
29
35
|
# Pushing with GITHUB_TOKEN doesn't retrigger this workflow, so no [skip ci] loop risk.
|
|
30
36
|
- name: Commit version bump
|
|
@@ -32,7 +38,39 @@ jobs:
|
|
|
32
38
|
git config user.name "github-actions[bot]"
|
|
33
39
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
34
40
|
git add package.json package-lock.json
|
|
35
|
-
git commit -m "chore: bump version to $
|
|
41
|
+
git commit -m "chore: bump version to ${{ steps.bump.outputs.version }}"
|
|
36
42
|
git push
|
|
37
43
|
|
|
38
|
-
- run: npm publish # Or: npm stage publish
|
|
44
|
+
- run: npm publish # Or: npm stage publish
|
|
45
|
+
|
|
46
|
+
sync-front:
|
|
47
|
+
needs: publish
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
strategy:
|
|
50
|
+
matrix:
|
|
51
|
+
branch: [master, beta]
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v6
|
|
54
|
+
with:
|
|
55
|
+
repository: insignia-education/front
|
|
56
|
+
ref: ${{ matrix.branch }}
|
|
57
|
+
token: ${{ secrets.FRONT_REPO_PAT }}
|
|
58
|
+
|
|
59
|
+
- uses: actions/setup-node@v6
|
|
60
|
+
with:
|
|
61
|
+
node-version: '24'
|
|
62
|
+
|
|
63
|
+
- name: Bump api-sdk-js dependency
|
|
64
|
+
run: npm install @insignia-education/api-sdk-js@${{ needs.publish.outputs.version }} --package-lock-only --no-audit --no-fund
|
|
65
|
+
|
|
66
|
+
- name: Commit and push
|
|
67
|
+
run: |
|
|
68
|
+
git config user.name "github-actions[bot]"
|
|
69
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
70
|
+
git add package.json package-lock.json
|
|
71
|
+
if git diff --cached --quiet; then
|
|
72
|
+
echo "front@${{ matrix.branch }} already on ${{ needs.publish.outputs.version }}"
|
|
73
|
+
exit 0
|
|
74
|
+
fi
|
|
75
|
+
git commit -m "chore: bump @insignia-education/api-sdk-js to ${{ needs.publish.outputs.version }}"
|
|
76
|
+
git push origin ${{ matrix.branch }}
|