Skip to content

Base 3 commit

Base 3 commit #4

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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
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@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
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@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
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 }}