-
Notifications
You must be signed in to change notification settings - Fork 12
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 refactor/add-contract-build-function
- Loading branch information
Showing
15 changed files
with
1,282 additions
and
155 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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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,66 @@ | ||
name: Install Dependencies | ||
description: 'Setup Sui CLI and install dependencies' | ||
|
||
inputs: | ||
SUI_VERSION: | ||
description: 'The version of Sui CLI to install' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Debug Action Input | ||
shell: bash | ||
run: echo "SUI_VERSION=${{ inputs.SUI_VERSION }}" | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libpq-dev | ||
- name: Cache Sui binaries | ||
id: cache-sui | ||
uses: actions/cache@v4 | ||
with: | ||
path: sui-binaries/ | ||
key: sui-${{ inputs.SUI_VERSION }} | ||
|
||
- name: Download and Install Sui | ||
shell: bash | ||
if: steps.cache-sui.outputs.cache-hit != 'true' | ||
run: | | ||
curl -L -o sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz https://github.com/MystenLabs/sui/releases/download/${{ inputs.SUI_VERSION }}/sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz | ||
tar -xvf sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz | ||
mkdir -p sui-binaries | ||
mv ./sui ./sui-binaries/ | ||
mv ./sui-debug ./sui-binaries/ | ||
mv ./sui-test-validator ./sui-binaries/ | ||
rm -rf sui-${{ inputs.SUI_VERSION }}-ubuntu-x86_64.tgz | ||
- name: Save Sui binaries | ||
if: steps.cache-sui.outputs.cache-hit != 'true' | ||
id: cache-sui-save | ||
uses: actions/cache@v4 | ||
with: | ||
path: sui-binaries/ | ||
key: sui-${{ inputs.SUI_VERSION }} | ||
|
||
- name: Add Sui binaries to PATH | ||
shell: bash | ||
run: | | ||
sudo cp ./sui-binaries/sui /usr/local/bin/sui | ||
sudo cp ./sui-binaries/sui-debug /usr/local/bin/sui-debug | ||
sudo cp ./sui-binaries/sui-test-validator /usr/local/bin/sui-test-validator | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 'Publish to NPM' | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
SUI_VERSION: mainnet-v1.25.3 | ||
|
||
jobs: | ||
publish-to-npm: | ||
name: 'Publish to NPM' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Sui CLI and install dependencies | ||
uses: ./.github/actions/install | ||
with: | ||
SUI_VERSION: ${{ env.SUI_VERSION }} | ||
|
||
- name: Build TS and Move Modules | ||
run: npm run build | ||
|
||
- name: Publish | ||
run: npm publish | ||
env: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: Check for changeset files | ||
id: checkfile | ||
run: | | ||
if ls .changeset/*.md | grep '\.changeset\/[a-z-]\+\.md$'; then | ||
echo "has_file=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "has_file=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Create Release Pull Request | ||
if: steps.checkfile.outputs.has_file == 'true' | ||
uses: changesets/action@v1 | ||
with: | ||
title: 'chore: update versions' | ||
commit: 'chore: update versions' | ||
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
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.