Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .github/workflows/publish-canary-releases.yml

This file was deleted.

41 changes: 10 additions & 31 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: Version & Publish Packages
name: Version Packages

on:
workflow_dispatch:
branches:
- main
push:
branches:
- main

env:
# See https://consoledonottrack.com/
DO_NOT_TRACK: '1'
permissions:
contents: write
pull-requests: write

jobs:
build-and-publish-to-npm:
version:
name: Create Version PR
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -22,29 +20,10 @@ jobs:
- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies

- name: Run Build Step
run: pnpm build

- name: Configure NPM token
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Changesets Pull Request or Trigger an NPM Publish
id: changesets
- name: Create Changesets Pull Request
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Choose Build Step
id: build-step-decider
run:
echo "step-name=${{ steps.changesets.outputs.hasChangesets == 'false' && 'publish-packages' || 'build' }}" >>
$GITHUB_OUTPUT

- name: Run Build Step
run: pnpm ${{ steps.build-step-decider.outputs.step-name }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44 changes: 9 additions & 35 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,18 @@
name: Pull requests
name: Pull Requests

on:
pull_request:

env:
# Among other things, opts out of Turborepo telemetry
# See https://consoledonottrack.com/
DO_NOT_TRACK: '1'
# Some tasks slow down considerably on GitHub Actions runners when concurrency is high
TURBO_CONCURRENCY: 1

jobs:
# Needed for grouping check-web3 strategies into one check for mergify
typescript-build:
uses: ./.github/workflows/typescript-build.yml

typescript-test:
uses: ./.github/workflows/typescript-test.yml

# Needed for grouping strategies into one check for mergify
all-pr-checks:
runs-on: ubuntu-latest
needs: build-and-test
needs: [typescript-build, typescript-test]
steps:
- run: echo "Done"

build-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node:
- 'current'
- 'lts/*'

name: Build & Test on Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies
with:
version: ${{ matrix.node }}

- name: Build
run: pnpm build

- name: Test & Lint
run: pnpm test
24 changes: 24 additions & 0 deletions .github/workflows/typescript-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: TypeScript Build

on:
workflow_call:

env:
DO_NOT_TRACK: '1'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies

- name: Build
run: pnpm build

- name: Type check
run: pnpm test:types
Loading