Skip to content

Commit

Permalink
💚 Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Feb 25, 2024
1 parent f6cefb1 commit 90d61df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish-bolt-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ jobs:
DRY_RUN_FLAG="--dry-run"
fi
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/account/Cargo.toml --token ${CRATES_TOKEN}
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component/Cargo.toml --token ${CRATES_TOKEN}
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-deserialize/Cargo.toml --token ${CRATES_TOKEN}
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-id/Cargo.toml --token ${CRATES_TOKEN}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-bolt-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ jobs:
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
cd clients/bolt-sdk/ && yarn build && yarn lint:fix && cd ../../ && yarn lint:fix
cd clients/bolt-sdk/
npm install --only=dev
if [ "${DRY_RUN}" = "true" ]; then
echo "Running npm publish in dry-run mode"
npm publish --access public --dry-run
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ jobs:
cd ${{ env.node_pkg }}
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
npm publish --access public
if [ "${DRY_RUN}" = "true" ]; then
echo "Running npm publish in dry-run mode"
npm publish --access public --dry-run
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set if on release
shell: bash
run: |
if [[ $GITHUB_REF == refs/heads/release/v* ]]; then
echo "ON_RELEASE=true" >> $GITHUB_ENV
fi
- uses: actions/cache@v4
name: cache solana cli
id: cache-solana
Expand Down Expand Up @@ -165,6 +171,7 @@ jobs:
anchor test
- name: Install the Bolt CLI and create & build a new project
if: ${{ env.ON_RELEASE }} == 'false'
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
cargo install --path cli --force --locked
Expand All @@ -174,10 +181,4 @@ jobs:
cargo add --package movement --path "../crates/bolt-lang" # -
yarn add file:../clients/bolt-sdk/ -D # Overrides the bolt ts SDK with the local version
bolt build
bolt test
- uses: actions/upload-artifact@v3
if: always()
with:
name: program-logs
path: .anchor/program-logs/*
bolt test

0 comments on commit 90d61df

Please sign in to comment.