Skip to content

Commit

Permalink
ci: enable prerelease mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Sep 11, 2023
1 parent 92c69ff commit ee9105c
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 17 deletions.
12 changes: 3 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.1.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "wagmi-dev/wagmi"
}
],
"commit": false,
"access": "public",
"baseBranch": "main",
"changelog": ["@changesets/changelog-github", { "repo": "wagmi-dev/wagmi" }],
"commit": false,
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
},
"ignore": ["@wagmi/site", "example-*", "playground-*"]
}
}
10 changes: 10 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@wagmi/connectors": "4.0.0",
"@wagmi/core": "2.0.0",
"wagmi": "2.0.0"
},
"changesets": []
}
41 changes: 41 additions & 0 deletions .github/workflows/on-push-to-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Alpha
on:
push:
branches: [alpha]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml
secrets: inherit

changesets:
name: Changesets
needs: verify
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v3
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

- name: Create version pull request or publish to npm
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
publish: pnpm changeset:release
version: pnpm changeset:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .scripts/preconstruct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ for (const packagePath of packagePaths) {
const packageFile = (await file.json()) as Package

// Skip private packages
if (packageFile.private) continue
if (packageFile.private && packageFile.name !== '@wagmi/test') continue
if (!packageFile.exports) continue
if (packageFile.name === '@wagmi/cli') continue

count += 1
const dir = path.resolve(path.dirname(packagePath))
Expand Down
2 changes: 1 addition & 1 deletion docs/shared/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ JSON.stringify({ value: 69420n }, replacer)
// '{"value":"69420"}'
```

## How do I support Wagmi development?
## How do I support the project?

Wagmi is an open source software project and free to use. If you enjoy using Wagmi or would like to support Wagmi development, you can:

Expand Down
2 changes: 1 addition & 1 deletion packages/connectors/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wagmi/connectors",
"description": "A collection of connectors for wagmi",
"version": "2.0.0",
"version": "4.0.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/connectors/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '2.0.0'
export const version = '4.0.0'
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wagmi/test",
"description": "Test utils for wagmi",
"version": "2.0.0",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
Expand Down
2 changes: 0 additions & 2 deletions packages/test/src/exports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ export { config } from '../config.js'
export { addressRegex, transactionHashRegex } from '../regex.js'

export { wait } from '../utils.js'

export { version } from '../version.js'
1 change: 0 additions & 1 deletion packages/test/src/version.ts

This file was deleted.

1 comment on commit ee9105c

@vercel
Copy link

@vercel vercel bot commented on ee9105c Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wagmi-v2 – ./docs

wagmi-v2.vercel.app
wagmi-v2-git-alpha-wagmi-dev.vercel.app
wagmi-v2-wagmi-dev.vercel.app
alpha.wagmi.sh

Please sign in to comment.