Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,28 +227,6 @@ jobs:
id: version
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT

- name: Create release artifacts archive
if: inputs.dry_run == false
run: |
mkdir -p release-artifacts
for pkg in packages/*/dist; do
pkg_name=$(basename $(dirname $pkg))
echo "Creating archive for $pkg_name..."
tar -czf release-artifacts/langfuse-js-sdk-${pkg_name}-${STEPS_VERSION_OUTPUTS_VERSION}.tar.gz -C $(dirname $pkg) dist
done
echo "Build artifacts:"
ls -lh release-artifacts/
env:
STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }}

- name: Upload release artifacts to GitHub Release
if: inputs.dry_run == false
run: |
gh release upload "v${VERSION}" release-artifacts/*.tar.gz --clobber
env:
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
VERSION: ${{ steps.version.outputs.version }}

- name: Notify Slack on success
if: success() && inputs.dry_run == false
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3
Comment thread
claude[bot] marked this conversation as resolved.
Expand Down Expand Up @@ -520,12 +498,10 @@ jobs:
- name: Rollback notification on partial failure
if: failure() && steps.release.outcome == 'success'
run: |
echo "⚠️ CRITICAL: Release succeeded but subsequent steps failed"
echo "⚠️ Release succeeded but post-release steps failed"
echo "Published version: v${STEPS_VERSION_OUTPUTS_VERSION}"
echo "Manual intervention may be required"
echo ""
echo "Options:"
echo "1. Re-run the workflow to complete GitHub release artifacts upload"
echo "2. Manually upload release artifacts for tag v${STEPS_VERSION_OUTPUTS_VERSION}"
echo "The release is fully complete (version bumped, npm published, GitHub release with all artifacts created)."
echo "Check the workflow logs for what failed in post-release steps (e.g., Slack notifications)."
env:
STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
# Build outputs
dist/
build/
release-artifacts/
*.tsbuildinfo
.turbo

Expand Down
8 changes: 6 additions & 2 deletions .release-it.ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@
},
"hooks": {
"before:init": [],
"after:bump": ["pnpm build"],
"after:bump": [
"pnpm build",
"set -e; mkdir -p release-artifacts && for pkg in packages/*/dist; do pkg_name=$(basename $(dirname $pkg)); tar -czf release-artifacts/langfuse-js-sdk-$pkg_name-${version}.tar.gz -C $(dirname $pkg) dist; done"
],
"after:release": "pnpm -r publish --access public --no-git-checks --provenance"
},
"github": {
"release": true,
"releaseName": "v${version}",
"autoGenerate": true
"autoGenerate": true,
"assets": ["release-artifacts/*.tar.gz"]
},
"plugins": {
"@release-it/bumper": {
Expand Down
Loading