Skip to content

Commit 90d61df

Browse files
committed
💚 Fix workflows
1 parent f6cefb1 commit 90d61df

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/publish-bolt-crates.yml

-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ jobs:
186186
DRY_RUN_FLAG="--dry-run"
187187
fi
188188
189-
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/account/Cargo.toml --token ${CRATES_TOKEN}
190189
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component/Cargo.toml --token ${CRATES_TOKEN}
191190
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-deserialize/Cargo.toml --token ${CRATES_TOKEN}
192191
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-id/Cargo.toml --token ${CRATES_TOKEN}

.github/workflows/publish-bolt-sdk.yml

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ jobs:
185185
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
186186
cd clients/bolt-sdk/ && yarn build && yarn lint:fix && cd ../../ && yarn lint:fix
187187
cd clients/bolt-sdk/
188+
npm install --only=dev
188189
if [ "${DRY_RUN}" = "true" ]; then
189190
echo "Running npm publish in dry-run mode"
190191
npm publish --access public --dry-run

.github/workflows/publish-packages.yml

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ jobs:
171171
cd ${{ env.node_pkg }}
172172
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
173173
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
174-
npm publish --access public
175174
if [ "${DRY_RUN}" = "true" ]; then
176175
echo "Running npm publish in dry-run mode"
177176
npm publish --access public --dry-run

.github/workflows/run-tests.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15+
- name: Set if on release
16+
shell: bash
17+
run: |
18+
if [[ $GITHUB_REF == refs/heads/release/v* ]]; then
19+
echo "ON_RELEASE=true" >> $GITHUB_ENV
20+
fi
1521
- uses: actions/cache@v4
1622
name: cache solana cli
1723
id: cache-solana
@@ -165,6 +171,7 @@ jobs:
165171
anchor test
166172
167173
- name: Install the Bolt CLI and create & build a new project
174+
if: ${{ env.ON_RELEASE }} == 'false'
168175
run: |
169176
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
170177
cargo install --path cli --force --locked
@@ -174,10 +181,4 @@ jobs:
174181
cargo add --package movement --path "../crates/bolt-lang" # -
175182
yarn add file:../clients/bolt-sdk/ -D # Overrides the bolt ts SDK with the local version
176183
bolt build
177-
bolt test
178-
179-
- uses: actions/upload-artifact@v3
180-
if: always()
181-
with:
182-
name: program-logs
183-
path: .anchor/program-logs/*
184+
bolt test

0 commit comments

Comments
 (0)