@@ -108,48 +108,53 @@ jobs:
108108 echo "stable_version=$STABLE_VERSION" >> $GITHUB_OUTPUT
109109 echo "Stable version will be: $STABLE_VERSION"
110110
111- - name : Create Promotion PR to Dev First
111+ - name : Create Success Summary
112112 if : steps.check_published.outputs.already_published != 'true'
113- uses : peter-evans/create-pull-request@v6
114- with :
115- token : ${{ secrets.GITHUB_TOKEN }}
116- head : release
117- base : dev
118- branch : promote/beta-to-stable-${{ steps.verify_version.outputs.version }}
119- title : ' feat: promote beta ${{ steps.verify_version.outputs.version }} to stable'
120- body : |
121- **Promote Beta to Stable Release**
122-
123- Beta version `${{ steps.verify_version.outputs.version }}` has been published to NPM from the staging branch and is ready for promotion to stable.
124-
125- **Current Status:**
126- - ✅ Beta version published to NPM with `beta` tag
127- - ✅ GitHub beta release created
128- - 🔄 Ready for stable release process
129-
130- **Next Steps:**
131- 1. Review and merge this PR to dev branch first
132- 2. Manually create PR from dev → staging and merge
133- 3. Manually create PR from staging → main and merge
134- 4. Trigger "Create Stable Release" workflow to create stable GitHub release
135- 5. Trigger "Publish Stable to NPM" workflow to publish with `latest` tag
136-
137- **Version Info:**
138- - Beta: `${{ steps.verify_version.outputs.version }}`
139- - Stable: `${{ steps.stable_version.outputs.stable_version }}` (will be created when promoted)
140-
141- **staging Branch Strategy:**
142- - Beta was published from `staging` branch
143- - All automatic PRs go to `dev` first, then manually merged to `staging` and `main`
144- - This prevents issues with ongoing development in `dev` branch
145-
146- ---
147- *This PR was automatically created after successful beta NPM publish*
148- labels : |
149- automated
150- release
151- stable-promotion
152- assignees : ${{ github.actor }}
113+ run : |
114+ echo "## 🎉 Beta Release Published Successfully!" >> $GITHUB_STEP_SUMMARY
115+ echo "" >> $GITHUB_STEP_SUMMARY
116+ echo "**Package**: \`@juspay/blend-design-system\`" >> $GITHUB_STEP_SUMMARY
117+ echo "**Version**: \`${{ steps.verify_version.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY
118+ echo "**NPM Tag**: \`beta\`" >> $GITHUB_STEP_SUMMARY
119+ echo "" >> $GITHUB_STEP_SUMMARY
120+ echo "### Installation" >> $GITHUB_STEP_SUMMARY
121+ echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
122+ echo "npm install @juspay/blend-design-system@beta" >> $GITHUB_STEP_SUMMARY
123+ echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
124+ echo "" >> $GITHUB_STEP_SUMMARY
125+ echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
126+ echo "- ✅ Beta version is now live on NPM" >> $GITHUB_STEP_SUMMARY
127+ echo "- ✅ GitHub beta release is available" >> $GITHUB_STEP_SUMMARY
128+ echo "- 🔄 Test the beta version thoroughly" >> $GITHUB_STEP_SUMMARY
129+ echo "- 🔄 When ready, promote to stable using 'Create Stable Release' workflow" >> $GITHUB_STEP_SUMMARY
130+
131+ - name : Verify NPM Package After Publish
132+ if : steps.check_published.outputs.already_published != 'true'
133+ run : |
134+ cd packages/blend
135+ PACKAGE_NAME=$(node -p "require('./package.json').name")
136+ VERSION="${{ steps.verify_version.outputs.version }}"
137+
138+ echo "Verifying published beta package..."
139+ sleep 10 # Wait for NPM to propagate
140+
141+ PUBLISHED_VERSION=$(npm view "$PACKAGE_NAME@beta" version 2>/dev/null || echo "")
142+ if [[ "$PUBLISHED_VERSION" == "$VERSION" ]]; then
143+ echo "✅ Successfully verified: $PACKAGE_NAME@$VERSION is live on NPM with beta tag"
144+ else
145+ echo "⚠️ Warning: Expected $VERSION but NPM shows $PUBLISHED_VERSION for beta tag"
146+ echo "This might be due to NPM propagation delay"
147+ fi
148+
149+ # Also check if we can download and list the package
150+ echo "📦 Testing package download..."
151+ npm view "$PACKAGE_NAME@beta" --json > /tmp/package-info.json || echo "Could not download package info"
152+
153+ if [[ -f /tmp/package-info.json ]]; then
154+ echo "✅ Package info downloaded successfully"
155+ echo "📋 Package details:"
156+ cat /tmp/package-info.json | jq -r '.name, .version, .description' 2>/dev/null || echo "Basic package info verified"
157+ fi
153158
154159 - name : Skip Publishing (Already Published)
155160 if : steps.check_published.outputs.already_published == 'true'
0 commit comments