Skip to content

Commit

Permalink
[FE] Add changesets (MystenLabs#4214)
Browse files Browse the repository at this point in the history
* Add changesets

* Add changeset workflow

* Add prepublish script to wallet adapters

* Update changesets and include repo dispatch

* Use correct token

* Add client payload to changesets dispatch

* Bring in docs changes

* Make experimental SDK private
  • Loading branch information
Jordan-Mysten authored Aug 26, 2022
1 parent 83cb004 commit b9ee5c2
Show file tree
Hide file tree
Showing 13 changed files with 595 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changesets

Hello and welcome! This folder was automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos to help version and publish code. You can
find the full documentation for it [in the changesets repository](https://github.com/changesets/changesets).

You can view a list of [common questions](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) to help you get started with changesets.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["sui-explorer", "sui-dapp-sdk"]
}
10 changes: 10 additions & 0 deletions .changeset/stale-sloths-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@mysten/wallet-adapter-base": patch
"@mysten/wallet-adapter-all-wallets": patch
"@mysten/wallet-adapter-mock-wallet": patch
"@mysten/wallet-adapter-sui-wallet": patch
"@mysten/wallet-adapter-react": patch
"@mysten/wallet-adapter-react-ui": patch
---

Add changesets to manage release for wallet adapters.
41 changes: 41 additions & 0 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Changesets
on:
push:
branches:
- main

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

jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- name: Dispatch Snapshot To Operations
uses: peter-evans/repository-dispatch@v2
with:
repository: MystenLabs/sui-operations
token: ${{ secrets.CHANGESETS_DEPLOY_DISPATCH }}
event-type: changesets-snapshot
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

version:
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/[email protected]
with:
version: 7
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"async": "3.2.2",
"nth-check": "2.0.1"
}
},
"devDependencies": {
"@changesets/cli": "^2.24.3"
}
}
Loading

0 comments on commit b9ee5c2

Please sign in to comment.