@pixpilot/scaffoldfy-configs 0.40.1 → 0.40.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pixpilot/scaffoldfy-configs
2
2
 
3
+ ## 0.40.3
4
+
5
+ ### Patch Changes
6
+
7
+ - add notification step for release failure
8
+
9
+ ## 0.40.2
10
+
11
+ ### Patch Changes
12
+
13
+ - update REGISTRY_TOKEN usage in release workflow
14
+
3
15
  ## 0.40.1
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/scaffoldfy-configs",
3
3
  "type": "module",
4
- "version": "0.40.1",
4
+ "version": "0.40.3",
5
5
  "author": "PixPilot <m.doaie@hotmail.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -21,9 +21,8 @@ jobs:
21
21
  permissions:
22
22
  contents: write
23
23
  pull-requests: write
24
- # Publishing targets GitHub Packages (publishConfig.registry in each
25
- # package.json), which authenticates with a token rather than npm OIDC
26
- # trusted publishing.
24
+ # Publishing targets GitHub Packages (publishConfig.registry in each package.json),
25
+ # which authenticates with a token rather than npm OIDC trusted publishing.
27
26
  packages: write
28
27
 
29
28
  steps:
@@ -55,10 +54,23 @@ jobs:
55
54
  uses: pixpilot/changesets-autopilot@v1
56
55
  with:
57
56
  GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
58
- # The app token rather than secrets.GITHUB_TOKEN: the latter only
59
- # grants package writes for the repository's own owner, and this
60
- # publishes under a different scope. The app must be installed on
61
- # @pixpilot-private with write:packages.
62
- REGISTRY_TOKEN: ${{ steps.app_token.outputs.token }}
57
+ # GitHub Packages auth. Must be a token with write:packages on the
58
+ # package scope; npm OIDC trusted publishing is npmjs-only.
59
+ # https://github.com/pixpilot-private
60
+ REGISTRY_TOKEN: ${{ secrets.PIXPILOT_PRIVATE_REGISTRY_TOKEN }}
63
61
  # npm provenance attestation is not supported by npm.pkg.github.com.
64
62
  provenance: 'false'
63
+
64
+ notify:
65
+ name: Notify on Release Failure
66
+ needs: [ci, release]
67
+ if: always()
68
+ runs-on: ubuntu-latest
69
+
70
+ steps:
71
+ - name: Send Telegram notification
72
+ uses: pixpilot/notify-action@v1
73
+ with:
74
+ status: ${{ contains(needs.*.result, 'failure') && 'failure' || contains(needs.*.result, 'cancelled') && 'cancelled' || 'success' }}
75
+ telegram-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
76
+ telegram-chat-id: ${{ secrets.TELEGRAM_CHAT_ID }}
@@ -48,3 +48,17 @@ jobs:
48
48
  with:
49
49
  GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
50
50
  provenance: 'true'
51
+
52
+ notify:
53
+ name: Notify on Release Failure
54
+ needs: [ci, release]
55
+ if: always()
56
+ runs-on: ubuntu-latest
57
+
58
+ steps:
59
+ - name: Send Telegram notification
60
+ uses: pixpilot/notify-action@v1
61
+ with:
62
+ status: ${{ contains(needs.*.result, 'failure') && 'failure' || contains(needs.*.result, 'cancelled') && 'cancelled' || 'success' }}
63
+ telegram-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
64
+ telegram-chat-id: ${{ secrets.TELEGRAM_CHAT_ID }}