Skip to content

fix(atp-mcp): include CJS build output in mcp-adapter publish (#66) #71

fix(atp-mcp): include CJS build output in mcp-adapter publish (#66)

fix(atp-mcp): include CJS build output in mcp-adapter publish (#66) #71

Workflow file for this run

name: ATP Version & Tag
on:
push:
branches: [master]
jobs:
version:
if: ${{ github.actor != 'atp-release[bot]' }}
runs-on: ubuntu-latest
permissions:
contents: write # needed to push commit + tags
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Setup Yarn
run: corepack prepare yarn@stable --activate
shell: bash
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache yarn dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --immutable
shell: bash
# Create version commits and tags (non-interactive)
- name: Version packages
run: |
git config user.name "atp-release[bot]"
git config user.email "atp+github-actions[bot]@noreply.github.com"
yarn nx release version
# Push the version commit and tags so the tag-triggered publish workflow runs (config is controlled in nx.json)
- name: Push commit and tags
run: |
git config user.name "atp-release[bot]"
git config user.email "atp+github-actions[bot]@noreply.github.com"
git push origin HEAD
git push --tags