@wise/wds-codemods 0.0.1-experimental-c53225c → 0.0.1-experimental-5aca8b2

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.
@@ -84,20 +84,21 @@ jobs:
84
84
  GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
85
85
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_AUTOMATION }}
86
86
 
87
- - name: Comment on PR with experimental build
87
+ - name: Update job status with build ID
88
88
  uses: actions/github-script@v7
89
89
  with:
90
90
  github-token: ${{ secrets.GH_ACCESS_TOKEN }}
91
91
  script: |
92
92
  const publishedPackage = '${{ steps.publish-experimental.outputs.published_package }}';
93
93
 
94
- const body = `<img width="40" src="https://github.com/user-attachments/assets/78dbfe3a-08af-49d2-9783-c60ae7c493fe" align="left" /> **Experimental build created:** <br /> \`${publishedPackage}\``;
95
-
96
- github.rest.issues.createComment({
97
- issue_number: context.issue.number,
94
+ await github.rest.repos.createCommitStatus({
98
95
  owner: context.repo.owner,
99
96
  repo: context.repo.repo,
100
- body: body
97
+ sha: context.sha,
98
+ state: 'success',
99
+ target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
100
+ description: publishedPackage,
101
+ context: 'experimental-build'
101
102
  });
102
103
 
103
104
  publish:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/wds-codemods",
3
- "version": "0.0.1-experimental-c53225c",
3
+ "version": "0.0.1-experimental-5aca8b2",
4
4
  "license": "UNLICENSED",
5
5
  "author": "Wise Payments Ltd.",
6
6
  "type": "module",