Skip to content

Commit d6b9474

Browse files
committed
👷 Update CI/CD
1 parent 3330c0e commit d6b9474

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
182182
- name: npm publish
183183
run: |
184-
npm install --only=dev
184+
npm install --global yarn
185185
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
186186
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
187187
cd clients/bolt-sdk/ && yarn build && yarn lint:fix && cd ../../ && yarn lint:fix

.github/workflows/publish-packages.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
mv "target/${{ matrix.build.TARGET }}/release/${bin}" "target/${{ matrix.build.TARGET }}/release/${release_name}"
156156
157157
- name: Publish binary to GitHub release
158-
if: env.DRY_RUN != 'true'
158+
if: ${{ env.DRY_RUN != 'true' }}
159159
uses: svenstaro/upload-release-action@v2
160160
with:
161161
repo_token: ${{ secrets.GITHUB_TOKEN }}
@@ -166,8 +166,8 @@ jobs:
166166
asset_name: "${{ env.release_name }}"
167167

168168
- name: Publish the NPM package
169-
shell: bash
170169
run: |
170+
echo "DRY_RUN=${DRY_RUN}"
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 }}

.github/workflows/run-tests.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
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
2114
- uses: actions/cache@v4
2215
name: cache solana cli
2316
id: cache-solana
@@ -171,7 +164,7 @@ jobs:
171164
anchor test
172165
173166
- name: Install the Bolt CLI and create & build a new project
174-
if: ${{ env.ON_RELEASE }} == 'false'
167+
if: ${{ !startsWith(github.ref, 'refs/heads/release/v') }}
175168
run: |
176169
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
177170
cargo install --path cli --force --locked

crates/bolt-lang/attribute/component-deserialize/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ proc-macro = true
1313

1414
[dependencies]
1515
syn = { workspace = true }
16-
bolt-utils = { path = "../../utils" }
16+
bolt-utils = { workspace = true }
1717
quote = { workspace = true }
1818
proc-macro2 = { workspace = true }

crates/bolt-lang/attribute/component/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ proc-macro = true
1313

1414
[dependencies]
1515
syn = { workspace = true }
16-
bolt-utils = { path = "../../utils" }
16+
bolt-utils = { workspace = true }
1717
quote = { workspace = true }
1818
proc-macro2 = { workspace = true }

0 commit comments

Comments
 (0)