Merge pull request #30 from modelcontextprotocol/justin/npm #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- uses: actions/checkout@v4 | |
with: | |
repository: modelcontextprotocol/typescript-sdk | |
ssh-key: ${{ secrets.TYPESCRIPT_SDK_KEY }} | |
path: packages/@modelcontextprotocol/sdk | |
- run: npm ci | |
working-directory: packages/@modelcontextprotocol/sdk | |
- run: npm pack | |
working-directory: packages/@modelcontextprotocol/sdk | |
- run: npm install --save packages/@modelcontextprotocol/sdk/modelcontextprotocol-sdk-*.tgz | |
# Working around https://github.com/npm/cli/issues/4828 | |
# - run: npm ci | |
- run: npm install --no-package-lock | |
- run: npm run build |