Add jira write tool to write comments #84
This file contains hidden or 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
| name: Atlassian MCP Server Build | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - "plugins/bitwarden-atlassian-tools/mcp/bitwarden-atlassian-mcp-server/**" | |
| - ".github/workflows/atlassian-mcp-server-build.yml" | |
| - ".nvmrc" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "plugins/bitwarden-atlassian-tools/mcp/bitwarden-atlassian-mcp-server/**" | |
| - ".github/workflows/atlassian-mcp-server-build.yml" | |
| - ".nvmrc" | |
| workflow_dispatch: | |
| permissions: {} | |
| defaults: | |
| run: | |
| working-directory: plugins/bitwarden-atlassian-tools/mcp/bitwarden-atlassian-mcp-server | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Get package version | |
| id: retrieve-package-version | |
| run: | | |
| PKG_VERSION=$(jq -r .version package.json) | |
| echo "package_version=$PKG_VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Get Node version | |
| id: retrieve-node-version | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| NODE_NVMRC=$(cat .nvmrc) | |
| NODE_VERSION=${NODE_NVMRC/v/''} | |
| echo "node_version=$NODE_VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Set up Node | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ steps.retrieve-node-version.outputs.node_version }} | |
| - name: Set up pnpm via Corepack | |
| run: | | |
| corepack enable | |
| corepack prepare --activate | |
| - name: Get pnpm store directory | |
| id: pnpm-store | |
| run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT" | |
| - name: Cache pnpm store | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ${{ steps.pnpm-store.outputs.path }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('plugins/bitwarden-atlassian-tools/mcp/bitwarden-atlassian-mcp-server/pnpm-lock.yaml') }} | |
| restore-keys: ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm run build | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: bitwarden-atlassian-mcp-server-${{ steps.retrieve-package-version.outputs.package_version }} | |
| path: plugins/bitwarden-atlassian-tools/mcp/bitwarden-atlassian-mcp-server/build/** | |
| if-no-files-found: error |