-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/gateway-coverage
Showing
24 changed files
with
939 additions
and
727 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
name: Create Release Pull Request | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
env: | ||
SUI_VERSION: mainnet-v1.25.3 | ||
|
||
jobs: | ||
release-pr: | ||
name: Create Release Pull Request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: Check for changeset files | ||
id: check-changeset-files | ||
run: | | ||
if ls .changeset/*.md | grep '\.changeset\/[a-z-]\+\.md$'; then | ||
echo "has_changeset_files=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "has_changeset_files=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Create Release Pull Request | ||
if: steps.check-changeset-files.outputs.has_changeset_files == 'true' | ||
uses: changesets/action@v1 | ||
with: | ||
title: 'chore: bump version and update changelog' | ||
createGithubReleases: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
28 changes: 17 additions & 11 deletions
28
.github/workflows/release.yaml → .github/workflows/publish-to-npm.yaml
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 |
---|---|---|
@@ -1,43 +1,49 @@ | ||
name: Release | ||
name: Publish to NPM | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- closed | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
env: | ||
SUI_VERSION: mainnet-v1.25.3 | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
publish: | ||
name: Publish to NPM | ||
if: > | ||
github.event.pull_request.merged == true && | ||
github.event.pull_request.user.login == 'github-actions[bot]' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check for changeset files | ||
id: checkfile | ||
id: check-changeset-files | ||
run: | | ||
if ls .changeset/*.md | grep '\.changeset\/[a-z-]\+\.md$'; then | ||
echo "has_file=true" >> "$GITHUB_OUTPUT" | ||
echo "has_changeset_files=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "has_file=false" >> "$GITHUB_OUTPUT" | ||
echo "has_changeset_files=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Setup Sui CLI and install dependencies | ||
uses: ./.github/actions/install | ||
with: | ||
SUI_VERSION: ${{ env.SUI_VERSION }} | ||
|
||
- name: Create Release Pull Request | ||
if: steps.checkfile.outputs.has_file == 'true' | ||
- name: Create GitHub Release | ||
if: steps.check-changeset-files.outputs.has_changeset_files == 'false' | ||
uses: changesets/action@v1 | ||
with: | ||
title: 'release: bump version and publish to npm' | ||
commit: 'chore: bump version and update changelog' | ||
publish: npm run release | ||
createGithubReleases: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_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
Oops, something went wrong.