Skip to content

build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#1405) #191

build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#1405)

build(deps): bump word-wrap from 1.2.3 to 1.2.4 (#1405) #191

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: 16
packageManager: pnpm
- 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 }}