-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup build and release packages (#262)
Co-authored-by: Tomek Kopacki <[email protected]>
- Loading branch information
Showing
20 changed files
with
557 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@ensnode/ponder-subgraph": minor | ||
"@ensnode/ens-deployments": minor | ||
"@ensnode/ensrainbow-sdk": minor | ||
"@ensnode/shared-configs": minor | ||
"@ensnode/utils": minor | ||
"@ensnode/ponder-schema": minor | ||
"ensadmin": minor | ||
--- | ||
|
||
Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release Packages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "packages/**" | ||
- ".changeset/**" | ||
workflow_dispatch: | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
name: Release Packages | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Create Release PR or Publish to NPM | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
commit: "chore(release): version packages" | ||
title: "chore(release): version packages" | ||
publish: pnpm release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: ["src/index.ts"], | ||
platform: "browser", | ||
format: ["esm"], | ||
target: "es2022", | ||
bundle: true, | ||
splitting: false, | ||
sourcemap: true, | ||
dts: true, | ||
clean: true, | ||
external: ["viem", "@ponder/utils"], | ||
outDir: "./dist", | ||
esbuildOptions(options) { | ||
options.mainFields = ["browser", "module", "main"]; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: { | ||
"subname-helpers": "src/subname-helpers.ts", | ||
types: "src/types.ts", | ||
}, | ||
platform: "browser", | ||
format: ["esm"], | ||
target: "es2022", | ||
bundle: true, | ||
splitting: false, | ||
sourcemap: true, | ||
dts: true, | ||
clean: true, | ||
external: ["viem"], | ||
outDir: "./dist", | ||
esbuildOptions(options) { | ||
options.mainFields = ["browser", "module", "main"]; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: { | ||
client: "src/client.ts", | ||
consts: "src/consts.ts", | ||
index: "src/index.ts", | ||
labelUtils: "src/label-utils.ts", | ||
"label-utils": "src/label-utils.ts", | ||
}, | ||
platform: "browser", | ||
format: ["esm"], | ||
target: "es2022", | ||
bundle: true, | ||
splitting: false, | ||
sourcemap: true, | ||
dts: true, | ||
clean: true, | ||
external: ["viem", "@ensnode/utils"], | ||
outDir: "./dist", | ||
esbuildOptions(options) { | ||
options.mainFields = ["browser", "module", "main"]; | ||
}, | ||
}); |
Oops, something went wrong.