Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuperMinterV2 #301

Merged
merged 3 commits into from
Dec 18, 2023
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
5 changes: 5 additions & 0 deletions .changeset/modern-shirts-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@soundxyz/sound-protocol": minor
---

SuperMinterV2 et al.
29 changes: 13 additions & 16 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ name: Canary Release
on:
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
publish-canary:
name: Publish Canary
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
Expand All @@ -19,28 +22,22 @@ jobs:
with:
version: nightly

- name: Setup Node.js 14.x
uses: actions/setup-node@master
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: latest

- name: Setup Node v18
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 18
cache: 'pnpm'

- name: Setup NPM credentials
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-v2-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-v2
- name: install pnpm
run: npm i pnpm@latest -g

- name: Install Dependencies
run: pnpm i

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- uses: pnpm/[email protected]
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: latest
- name: Setup Node v16
uses: actions/setup-node@v2

- name: Setup Node v18
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: 18
cache: 'pnpm'

- name: Run Danger JS
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
with:
version: latest

- name: Set up Node.js
uses: actions/setup-node@v3
- name: Setup Node v18
uses: actions/setup-node@v4
with:
node-version: 16.16.0
cache: 'pnpm'
node-version: 18

- name: Install Node.js dependencies
run: pnpm install
Expand Down
102 changes: 53 additions & 49 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,56 @@
name: Release

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

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node
uses: actions/setup-node@v2
with:
node-version: "16.x"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: install pnpm
run: npm i pnpm@^7.2.1 -g
- name: Install Dependencies
run: pnpm i

- name: Setup NPM credentials
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: dotansimha/[email protected]
with:
publish: "pnpm release"
commit: "chore(release): update monorepo packages versions"
title: "Upcoming Release Changes"
createGithubReleases: true
githubReleaseName: ${{ steps.vars.outputs.date }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: latest

- name: Setup Node v18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install Dependencies
run: pnpm install --no-frozen-lockfile

- name: Set version variables
id: vars
shell: bash
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "date=$(date +"%B %d, %Y")" >> $GITHUB_OUTPUT

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: dotansimha/[email protected]
with:
publish: 'pnpm release'
commit: 'chore(release): update monorepo packages versions'
title: 'Upcoming Release Changes'
createGithubReleases: true
githubReleaseName: ${{ steps.vars.outputs.date }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ cache
out*
typechain
dist
create2
.tmp

# Ignores development broadcast logs
/broadcast/**/run-166*.json
Expand All @@ -16,4 +18,4 @@ node_modules
lcov.info
/coverage/*

.DS_Store
.DS_Store
8 changes: 3 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
url = https://github.com/chiru-labs/ERC721A-Upgradeable
branch = 05bd2b9993e632ff898472fb6aec6d698a4c6015
ignore = dirty
[submodule "lib/multicaller"]
path = lib/multicaller
url = https://github.com/vectorized/multicaller
branch = main
ignore = dirty
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/multicaller"]
path = lib/multicaller
url = https://github.com/vectorized/multicaller
4 changes: 4 additions & 0 deletions build_create2_deployments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ generateDeployment "SoundEditionV2";
generateDeployment "SoundCreatorV2";
generateDeployment "SoundOnChainMetadata";
generateDeployment "SoundMetadata";

generateDeployment "SoundEditionV2_1";
generateDeployment "SuperMinterV2";

Loading
Loading