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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/generated/**
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@master
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18.18.1'

- name: Change to API directory
run: cd packages/api
- name: Install Yarn
run: npm install -g yarn@1.22.21

- name: Install API dependencies
run: npm install
working-directory: ./packages/api
- name: Install dependencies
run: yarn install

- name: Update Version Enum and Bump Patch Version
run: npm run update-versions
run: yarn update-versions
working-directory: ./packages/api

# Build packages using Turborepo
- name: Build packages
run: yarn build

- name: Create Pull Request for API package
uses: peter-evans/create-pull-request@v6
with:
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18.12.1
node-version: 18.18.1
registry-url: https://registry.npmjs.org/

- run: npm ci

- run: npm run build --workspaces
- name: Install Yarn
run: npm install -g yarn@1.22.21

- run: yarn install

# Build packages using Turborepo
- name: Build packages
run: yarn build

- name: Get changed packages
id: changed
Expand All @@ -34,7 +39,7 @@ jobs:
PACKAGES=$(echo '${{ steps.changed.outputs.packages }}' | jq -r '.[]')
for PKG in $PACKAGES; do
cd packages/$PKG
npm publish --access public
yarn publish --access public
cd ../..
done
env:
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.12.x'
- run: npm ci
- run: npm run prettier --workspaces
- run: npm run lint --workspaces
- run: npm run build --workspaces
- run: npm test --workspaces
node-version: '18.18.1'
- name: Install Yarn
run: npm install -g yarn@1.22.21
- run: yarn install
- run: yarn prettier
- run: yarn lint

- name: Build packages
run: yarn build

- name: Test packages
run: yarn test
11 changes: 7 additions & 4 deletions .github/workflows/update_api_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
with:
node-version: '14'

- name: Install Yarn
run: npm install -g yarn@1.22.21

- name: Change to API directory
run: cd packages/api

Expand All @@ -27,20 +30,20 @@ jobs:
working-directory: ./packages/api

- name: Install API dependencies
run: npm install
run: yarn install
working-directory: ./packages/api

- name: Update Version
run: npm run update-versions
run: yarn update-versions
working-directory: ./packages/api

- name: Commit and Push Changes
run: |
git config user.name "Auto Bot"
git config user.email "bot@monday.com"
npm version major --no-git-tag-version
yarn version --new-version major --no-git-tag-version
git add .
git restore --staged package-lock.json
git restore --staged yarn.lock
git commit -m "Automate version update"
git push origin HEAD:versions-update-${{ github.sha }}
working-directory: ./packages/api
Expand Down
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,14 @@ dist
.idea

.qodo

# Turborepo
.turbo
**/dist
**/.angular
**/.next
**/.svelte-kit
**/.solid
**/.output
**/.vercel
**/.netlify
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/generated/**
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@ This monorepo contains all the packages for the monday.com GraphQL SDKs. Current
- [@mondaydotcomorg/api](./packages/api) - Our official sdk, used to make api calls
- [@mondaydotcomorg/api-types](./packages/api-types) - Types
- [@mondaydotcomorg/setup-api](./packages/setup-api) - After installing the api, use this to setup typed api environment
- [@mondaydotcomorg/monday-api-mcp](./packages/agent-toolkit) - Toolkit for MCP / agents.
- [@mondaydotcomorg/monday-api-mcp](./packages/monday-api-mcp) - MCP for monday using the API.

## Development

This project uses [Turborepo](https://turbo.build/) for managing the monorepo. Common commands:

```bash
# Build all packages
yarn build

# Run tests
yarn test

# Run development mode
yarn dev
```

## Usage of generated code

The packages in this monorepo contain files that are generated using monday.com's sdk generator, you will find them inside the `generated` folder of each package.
Expand Down
Loading