1111 name : Release
1212 runs-on : ubuntu-latest
1313 # Only run this job if it's in the original repository, not in forks
14- if : github.repository == 'xava-labs /typescript-agent-vibework '
14+ if : github.repository == 'null-shot /typescript-agent-framework '
1515 permissions :
1616 contents : write
1717 packages : write
2222 with :
2323 fetch-depth : 0
2424 token : ${{ secrets.GITHUB_TOKEN }}
25-
25+
2626 - name : Setup pnpm
2727 uses : pnpm/action-setup@v4
2828 with :
3131 - name : Setup Node.js
3232 uses : actions/setup-node@v4
3333 with :
34- node-version : ' 22 '
35- cache : ' pnpm'
36- registry-url : ' https://registry.npmjs.org'
34+ node-version : " 22 "
35+ cache : " pnpm"
36+ registry-url : " https://registry.npmjs.org"
3737
3838 - name : Configure npm
3939 run : |
@@ -48,18 +48,18 @@ jobs:
4848
4949 - name : Test packages
5050 run : pnpm test
51-
51+
5252 - name : Setup Git User
5353 run : |
5454 git config --global user.name "github-actions[bot]"
5555 git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
56-
56+
5757 - name : Version and Publish
5858 id : publish
5959 run : |
6060 # Apply changesets (update version numbers)
6161 pnpm changeset version
62-
62+
6363 # Extract versions for release notes
6464 MCP_VERSION=$(node -p "require('./packages/mcp/package.json').version")
6565 TEST_UTILS_VERSION=$(node -p "require('./packages/test-utils/package.json').version")
@@ -68,14 +68,14 @@ jobs:
6868 echo "TEST_UTILS_VERSION=${TEST_UTILS_VERSION}" >> $GITHUB_OUTPUT
6969 echo "PLAYGROUND_VERSION=${PLAYGROUND_VERSION}" >> $GITHUB_OUTPUT
7070 echo "RELEASE_TAG=v${MCP_VERSION}" >> $GITHUB_OUTPUT
71-
71+
7272 # Commit the version updates
7373 git add .
7474 git commit -m "chore(release): version packages" || echo "No changes to commit"
75-
75+
7676 # Build once more to ensure latest versions are included
7777 pnpm build
78-
78+
7979 # Manually publish each package with npm
8080 echo "Publishing packages directly with npm..."
8181 cd packages/test-utils
@@ -85,46 +85,46 @@ jobs:
8585 cd ../playground
8686 npm publish --access public || echo "Failed to publish playground, may already exist"
8787 cd ../..
88-
88+
8989 # Push the version updates and tags
9090 git push origin main
91-
91+
9292 # Create and push a version tag
9393 git tag -a "v${MCP_VERSION}" -m "Release v${MCP_VERSION}"
9494 git push --tags
9595 env :
9696 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9797 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
98-
98+
9999 - name : Create GitHub Release
100100 uses : actions/github-script@v7
101101 with :
102102 github-token : ${{ secrets.GITHUB_TOKEN }}
103103 script : |
104104 const { RELEASE_TAG, MCP_VERSION, TEST_UTILS_VERSION, PLAYGROUND_VERSION } = process.env;
105-
105+
106106 // Get the commits since the last tag
107107 const { data: commits } = await github.rest.repos.listCommits({
108108 owner: context.repo.owner,
109109 repo: context.repo.repo,
110110 per_page: 10
111111 });
112-
112+
113113 // Create a nice markdown body
114114 const body = `
115115 ## Packages
116-
116+
117117 - @xava-labs/mcp: ${MCP_VERSION}
118118 - @xava-labs/test-utils: ${TEST_UTILS_VERSION}
119119 - @xava-labs/playground: ${PLAYGROUND_VERSION}
120-
120+
121121 ## Recent Changes
122-
122+
123123 ${commits.slice(0, 5).map(commit => (
124124 `- ${commit.commit.message} (${commit.sha.substring(0, 7)})`
125125 )).join('\n')}
126126 `;
127-
127+
128128 // Create the release
129129 await github.rest.repos.createRelease({
130130 owner: context.repo.owner,
@@ -139,4 +139,4 @@ jobs:
139139 RELEASE_TAG : ${{ steps.publish.outputs.RELEASE_TAG }}
140140 MCP_VERSION : ${{ steps.publish.outputs.MCP_VERSION }}
141141 TEST_UTILS_VERSION : ${{ steps.publish.outputs.TEST_UTILS_VERSION }}
142- PLAYGROUND_VERSION : ${{ steps.publish.outputs.PLAYGROUND_VERSION }}
142+ PLAYGROUND_VERSION : ${{ steps.publish.outputs.PLAYGROUND_VERSION }}
0 commit comments