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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
"access": "restricted",
"access": "public",
"baseBranch": "main",
"changelog": "@changesets/cli/changelog",
"commit": false,
Expand Down
10 changes: 10 additions & 0 deletions .changeset/upset-turkeys-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@assert-equals/dappdriver': major
'@assert-equals/dappdriver-metamask': major
'@assert-equals/dappdriver-rainbow': major
'@assert-equals/dappdriver-wallet': major
'@assert-equals/dappdriver-zerion': major
'@assert-equals/dappdriver-flask': major
---

Restructure the repository as a pnpm monorepo.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn
run: pnpm install --frozen-lockfile

- name: Build
run: yarn build
run: pnpm build

- name: Test
run: yarn test
run: pnpm test
25 changes: 19 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish docs

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_run:
workflows: ['Release']
types: [completed]

permissions:
contents: read
Expand All @@ -17,15 +17,28 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
if: |
github.event.workflow_run.conclusion == 'success' &&
contains(github.event.workflow_run.head_commit.message, 'changeset-release')
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn
- name: Generate documentation
run: yarn docs
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm build

- name: Generate docs
run: pnpm run docs

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/publish-package-npm.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish package to npm

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write
pull-requests: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@assert-equals'

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm build

- name: Run tests
run: pnpm test

- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ zerion-*
dist
docs
.DS_Store
.vscode
.vscode
.turbo/
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
ignore-scripts=false
9 changes: 0 additions & 9 deletions .versionrc.json

This file was deleted.

Loading
Loading