File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ jobs:
186
186
DRY_RUN_FLAG="--dry-run"
187
187
fi
188
188
189
- cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/account/Cargo.toml --token ${CRATES_TOKEN}
190
189
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component/Cargo.toml --token ${CRATES_TOKEN}
191
190
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-deserialize/Cargo.toml --token ${CRATES_TOKEN}
192
191
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-id/Cargo.toml --token ${CRATES_TOKEN}
Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ jobs:
185
185
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
186
186
cd clients/bolt-sdk/ && yarn build && yarn lint:fix && cd ../../ && yarn lint:fix
187
187
cd clients/bolt-sdk/
188
+ npm install --only=dev
188
189
if [ "${DRY_RUN}" = "true" ]; then
189
190
echo "Running npm publish in dry-run mode"
190
191
npm publish --access public --dry-run
Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ jobs:
171
171
cd ${{ env.node_pkg }}
172
172
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
173
173
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
174
- npm publish --access public
175
174
if [ "${DRY_RUN}" = "true" ]; then
176
175
echo "Running npm publish in dry-run mode"
177
176
npm publish --access public --dry-run
Original file line number Diff line number Diff line change 12
12
steps :
13
13
- uses : actions/checkout@v4
14
14
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
15
21
- uses : actions/cache@v4
16
22
name : cache solana cli
17
23
id : cache-solana
@@ -165,6 +171,7 @@ jobs:
165
171
anchor test
166
172
167
173
- name : Install the Bolt CLI and create & build a new project
174
+ if : ${{ env.ON_RELEASE }} == 'false'
168
175
run : |
169
176
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
170
177
cargo install --path cli --force --locked
@@ -174,10 +181,4 @@ jobs:
174
181
cargo add --package movement --path "../crates/bolt-lang" # -
175
182
yarn add file:../clients/bolt-sdk/ -D # Overrides the bolt ts SDK with the local version
176
183
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
You can’t perform that action at this time.
0 commit comments