Skip to main content
Glama
release.yml2.38 kB
name: Release on: push: branches: - main permissions: contents: write # needed to create releases/tags env: ROLLUP_SKIP_NODEJS_NATIVE_BUILD: "true" jobs: release: runs-on: ubuntu-latest permissions: contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues pull-requests: write # to be able to comment on released pull requests id-token: write # to enable use of OIDC for npm provenance outputs: version: ${{ steps.release.outputs.version }} released: ${{ steps.release.outputs.released }} steps: - uses: actions/checkout@v6 - uses: pnpm/action-setup@v4 with: run_install: false - uses: actions/setup-node@v6 with: node-version-file: '.nvmrc' cache: 'pnpm' cache-dependency-path: pnpm-lock.yaml - run: pnpm install --frozen-lockfile - run: pnpm run build - name: Run unit tests run: pnpm vitest run --exclude tests/integration/** - name: Run integration tests run: pnpm vitest run tests/integration env: HEVY_API_KEY: ${{ secrets.HEVY_API_KEY }} - name: Store initial version id: initial_version run: | set -euo pipefail VERSION=$(node -p "JSON.parse(require('fs').readFileSync('package.json','utf8')).version") echo "version=$VERSION" >> "$GITHUB_OUTPUT" - name: Release id: release_step run: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Check if release was created id: release run: | set -euo pipefail NEW_VERSION=$(node -p "JSON.parse(require('fs').readFileSync('package.json','utf8')).version") if [ "$NEW_VERSION" != "${{ steps.initial_version.outputs.version }}" ]; then { echo "version=$NEW_VERSION" echo "released=true" } >> "$GITHUB_OUTPUT" echo "Release created: $NEW_VERSION" else echo "released=false" >> "$GITHUB_OUTPUT" echo "No release created" fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisdoc/hevy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server