-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51d75df
commit 524dc6e
Showing
5 changed files
with
69 additions
and
31 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,36 @@ | ||
name: 'Install Anchor with cached modules' | ||
description: 'Run cargo install anchor-cli with cached modules' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Cache cargo registry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry- | ||
- name: Cache cargo index | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-git- | ||
- name: Cache cargo build | ||
uses: actions/cache@v4 | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo-build-target- | ||
- name: Anchor Install | ||
uses: metadaoproject/install-anchor@v2 | ||
with: | ||
anchor-version: '0.29.0' | ||
solana-cli-version: '1.17.15' | ||
node-version: '20.10.0' |
File renamed without changes.
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,23 @@ | ||
name: 'Publish' | ||
description: 'Publish the project' | ||
inputs: | ||
npm_token: | ||
description: 'NPM token' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install Dependencies | ||
run: cd sdk && pnpm install | ||
shell: bash | ||
- name: Build SDK | ||
run: pnpm run build:sdk | ||
shell: bash | ||
- name: Publish SDK | ||
run: | | ||
pnpm publish --access public \ | ||
${{ contains(github.ref_name, 'alpha') && '--tag alpha' || contains(github.ref_name, 'beta') && '--tag beta' || '' }} | ||
shell: bash | ||
env: | ||
NODE_AUTH_TOKEN: ${{ inputs.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