Skip to content

update NETWORK_SUBGRAPH_MAINNET & add api-key to CLI (#1760) #490

update NETWORK_SUBGRAPH_MAINNET & add api-key to CLI (#1760)

update NETWORK_SUBGRAPH_MAINNET & add api-key to CLI (#1760) #490

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions: write-all
env:
RELEASE_COMMIT_MSG: 'chore(release): update monorepo packages versions'
jobs:
stable:
name: Stable
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup environment
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 20
packageManager: pnpm
packageManagerVersion: 9.1.0
- name: Set variables
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "date=$(date +"%B %d, %Y")" >> $GITHUB_OUTPUT
- name: Build
if: ${{ startsWith(github.event.head_commit.message, env.RELEASE_COMMIT_MSG) }}
run: pnpm --filter=@graphprotocol/graph-cli build
- name: Pack binaries
if: ${{ startsWith(github.event.head_commit.message, env.RELEASE_COMMIT_MSG) }}
run: pnpm --filter=@graphprotocol/graph-cli oclif:pack
- name: Release / pull_request
uses: dotansimha/[email protected]
with:
publish: pnpm release
version: pnpm changeset version
commit: ${{ env.RELEASE_COMMIT_MSG }}
title: Upcoming Release Changes
createGithubReleases: true
githubReleaseName: ${{ steps.vars.outputs.date }}
githubReleaseAssets: packages/cli/dist/*.tar.gz
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}