@wise/wds-codemods 0.0.1-experimental-c53225c → 0.0.1-experimental-e8c3fbe
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/.github/workflows/cd-cd.yml +2 -24
- package/package.json +1 -1
|
@@ -64,7 +64,6 @@ jobs:
|
|
|
64
64
|
shell: bash
|
|
65
65
|
|
|
66
66
|
- name: Publish snapshot release on npm
|
|
67
|
-
id: publish-experimental
|
|
68
67
|
run: |
|
|
69
68
|
# Get current version from package.json
|
|
70
69
|
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
@@ -73,33 +72,12 @@ jobs:
|
|
|
73
72
|
# Update package.json version directly
|
|
74
73
|
npm version $EXPERIMENTAL_VERSION --no-git-tag-version
|
|
75
74
|
|
|
76
|
-
# Publish the experimental version
|
|
77
|
-
|
|
78
|
-
echo "$PUBLISH_OUTPUT"
|
|
79
|
-
|
|
80
|
-
# Extract the published package name and version from npm output
|
|
81
|
-
PUBLISHED_PACKAGE=$(echo "$PUBLISH_OUTPUT" | grep -o '@wise/wds-codemods@[^[:space:]]*' | head -1)
|
|
82
|
-
echo "published_package=$PUBLISHED_PACKAGE" >> $GITHUB_OUTPUT
|
|
75
|
+
# Publish the experimental version
|
|
76
|
+
npm publish --tag experimental
|
|
83
77
|
env:
|
|
84
78
|
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
|
|
85
79
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_AUTOMATION }}
|
|
86
80
|
|
|
87
|
-
- name: Comment on PR with experimental build
|
|
88
|
-
uses: actions/github-script@v7
|
|
89
|
-
with:
|
|
90
|
-
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
|
|
91
|
-
script: |
|
|
92
|
-
const publishedPackage = '${{ steps.publish-experimental.outputs.published_package }}';
|
|
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,
|
|
98
|
-
owner: context.repo.owner,
|
|
99
|
-
repo: context.repo.repo,
|
|
100
|
-
body: body
|
|
101
|
-
});
|
|
102
|
-
|
|
103
81
|
publish:
|
|
104
82
|
name: 🚀 Publish stable packages
|
|
105
83
|
if: ${{ github.ref == 'refs/heads/main' }}
|