Skip to content

Commit

Permalink
ci: canary
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jan 15, 2024
1 parent 2a2fe74 commit 3458dd0
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 88 deletions.
9 changes: 9 additions & 0 deletions .changeset/plenty-jokes-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@wagmi/cli": patch
"@wagmi/connectors": patch
"@wagmi/core": patch
"create-wagmi": patch
"wagmi": patch
---

test canary
37 changes: 0 additions & 37 deletions .github/workflows/canary.yml

This file was deleted.

36 changes: 35 additions & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,38 @@ jobs:
version: pnpm changeset:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

canary:
name: Publish canary version
if: github.ref == 'refs/heads/main'
# needs: verify
permissions: write-all
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
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: Install dependencies
uses: ./.github/actions/install-dependencies

# https://github.com/changesets/changesets/blob/main/docs/snapshot-releases.md#versioning-your-packages
- name: Version packages
run: pnpm changeset version --snapshot canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare packages
run: pnpm changeset:prepublish

# https://github.com/changesets/changesets/blob/main/docs/snapshot-releases.md#publishing-your-packages
- name: Publish packages
run: pnpm changeset publish --tag canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ packages/cli/config
packages/cli/plugins
packages/core/actions
packages/core/chains
packages/core/codegen
packages/core/internal
packages/core/query
packages/react/actions
packages/react/chains
packages/react/codegen
packages/react/connectors
packages/react/query
packages/react/query
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "module",
"scripts": {
"build": "pnpm run --r --filter \"./packages/**\" build",
"changeset:publish": "pnpm version:update && pnpm build && bun .scripts/formatPackageJson.ts && bun .scripts/generateProxyPackages.ts && changeset publish",
"changeset:prepublish": "pnpm version:update && pnpm build && bun .scripts/formatPackageJson.ts && bun .scripts/generateProxyPackages.ts",
"changeset:publish": "pnpm changeset:prepublish && changeset publish",
"changeset:version": "changeset version && pnpm version:update",
"clean": "pnpm run --r --parallel clean",
"deps": "pnpx taze -r",
Expand Down
36 changes: 8 additions & 28 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains internal query",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains codegen internal query",
"test:build": "publint --strict",
"typecheck": "tsc --noEmit"
},
Expand Down Expand Up @@ -60,21 +60,11 @@
},
"typesVersions": {
"*": {
"actions": [
"./dist/types/exports/actions.d.ts"
],
"chains": [
"./dist/types/exports/chains.d.ts"
],
"codegen": [
"./dist/types/exports/codegen.d.ts"
],
"internal": [
"./dist/types/exports/internal.d.ts"
],
"query": [
"./dist/types/exports/query.d.ts"
]
"actions": ["./dist/types/exports/actions.d.ts"],
"chains": ["./dist/types/exports/chains.d.ts"],
"codegen": ["./dist/types/exports/codegen.d.ts"],
"internal": ["./dist/types/exports/internal.d.ts"],
"query": ["./dist/types/exports/query.d.ts"]
}
},
"peerDependencies": {
Expand All @@ -98,17 +88,7 @@
"devDependencies": {
"@tanstack/query-core": "5.0.5"
},
"contributors": [
"awkweb.eth <t@wevm.dev>",
"jxom.eth <j@wevm.dev>"
],
"contributors": ["awkweb.eth <t@wevm.dev>", "jxom.eth <j@wevm.dev>"],
"funding": "https://github.com/sponsors/wevm",
"keywords": [
"wagmi",
"eth",
"ethereum",
"dapps",
"wallet",
"web3"
]
"keywords": ["wagmi", "eth", "ethereum", "dapps", "wallet", "web3"]
}
27 changes: 7 additions & 20 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains connectors query",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains codegen connectors query",
"test:build": "publint --strict",
"typecheck": "tsc --noEmit"
},
Expand Down Expand Up @@ -61,21 +61,11 @@
},
"typesVersions": {
"*": {
"actions": [
"./dist/types/exports/actions.d.ts"
],
"chains": [
"./dist/types/exports/chains.d.ts"
],
"codegen": [
"./dist/types/exports/codegen.d.ts"
],
"connectors": [
"./dist/types/exports/connectors.d.ts"
],
"query": [
"./dist/types/exports/query.d.ts"
]
"actions": ["./dist/types/exports/actions.d.ts"],
"chains": ["./dist/types/exports/chains.d.ts"],
"codegen": ["./dist/types/exports/codegen.d.ts"],
"connectors": ["./dist/types/exports/connectors.d.ts"],
"query": ["./dist/types/exports/query.d.ts"]
}
},
"peerDependencies": {
Expand Down Expand Up @@ -103,10 +93,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"contributors": [
"awkweb.eth <t@wevm.dev>",
"jxom.eth <j@wevm.dev>"
],
"contributors": ["awkweb.eth <t@wevm.dev>", "jxom.eth <j@wevm.dev>"],
"funding": "https://github.com/sponsors/wevm",
"keywords": [
"wagmi",
Expand Down

0 comments on commit 3458dd0

Please sign in to comment.