Skip to content

Base 0 commit

Base 0 commit #1

Workflow file for this run

name: Changesets
on:
push:
branches:
- main
jobs:
changesets:
name: Changesets
runs-on: ubuntu-latest
steps:
# Checkout this repository
- name: Checkout Repo
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
# Install nix
- name: Install Nix
uses: cachix/install-nix-action@29bd9290ef037a3ecbdafe83cbd2185e9dd0fa0a # v20
with:
nix_path: nixpkgs=channel:nixos-unstable
# Install dependencies using yarn
- name: Install Dependencies
run: nix develop -c yarn install --frozen-lockfile
# Create PR that will update versions or trigger publish
- name: Create Release Pull Request
uses: changesets/action@2a025e8ab1cfa4312c2868cb6aa3cd3b473b84bf # v1.3.0
id: changesets
with:
publish: nix develop -c yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Dispatch Relayer release
- name: Release relayer
run: gh workflow run .github/workflows/release/starknet-relayer.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Dispatch Gauntlet CLI build & release
- name: Build and release Gauntlet CLI
run: gh workflow run .github/workflows/release/starknet-gauntlet-cli.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}