forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] Add changesets (MystenLabs#4214)
* 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
1 parent
83cb004
commit b9ee5c2
Showing
13 changed files
with
595 additions
and
14 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
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. |
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 @@ | ||
{ | ||
"$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"] | ||
} |
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,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. |
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,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 }} |
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 |
---|---|---|
|
@@ -10,5 +10,8 @@ | |
"async": "3.2.2", | ||
"nth-check": "2.0.1" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.24.3" | ||
} | ||
} |
Oops, something went wrong.