superdesk-ui-framework 6.1.5 → 6.1.6

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.
@@ -24,6 +24,8 @@ jobs:
24
24
  - uses: actions/checkout@v6
25
25
  with:
26
26
  fetch-depth: 0
27
+ ssh-key: ${{ secrets.PUBLISH_KEY }}
28
+ persist-credentials: true
27
29
  - uses: actions/setup-node@v6
28
30
  with:
29
31
  node-version: '22'
@@ -52,6 +54,14 @@ jobs:
52
54
  - run: npm run lint
53
55
  - run: npm run build
54
56
 
57
+ # Push the bump commit and tag BEFORE publishing, so a push failure
58
+ # aborts the run before the irreversible npm publish.
59
+ - name: Push version bump and tag
60
+ if: inputs.bump != 'none'
61
+ run: |
62
+ git push origin "HEAD:${{ github.ref_name }}"
63
+ git push origin "v${{ steps.package-version.outputs.version }}"
64
+
55
65
  - name: Upgrade npm for OIDC trusted publishing
56
66
  run: npm install -g npm@11
57
67
 
@@ -60,12 +70,6 @@ jobs:
60
70
  with:
61
71
  provenance: true
62
72
 
63
- - name: Push version bump and tag
64
- if: inputs.bump != 'none'
65
- run: |
66
- git push origin "HEAD:${{ github.ref_name }}"
67
- git push origin "v${{ steps.package-version.outputs.version }}"
68
-
69
73
  - name: Create GitHub Release
70
74
  uses: softprops/action-gh-release@v3
71
75
  with: