File tree 5 files changed +6
-13
lines changed
crates/bolt-lang/attribute
5 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ jobs:
181
181
182
182
- name : npm publish
183
183
run : |
184
- npm install --only=dev
184
+ npm install --global yarn
185
185
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
186
186
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
187
187
cd clients/bolt-sdk/ && yarn build && yarn lint:fix && cd ../../ && yarn lint:fix
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ jobs:
155
155
mv "target/${{ matrix.build.TARGET }}/release/${bin}" "target/${{ matrix.build.TARGET }}/release/${release_name}"
156
156
157
157
- name : Publish binary to GitHub release
158
- if : env.DRY_RUN != 'true'
158
+ if : ${{ env.DRY_RUN != 'true' }}
159
159
uses : svenstaro/upload-release-action@v2
160
160
with :
161
161
repo_token : ${{ secrets.GITHUB_TOKEN }}
@@ -166,8 +166,8 @@ jobs:
166
166
asset_name : " ${{ env.release_name }}"
167
167
168
168
- name : Publish the NPM package
169
- shell : bash
170
169
run : |
170
+ echo "DRY_RUN=${DRY_RUN}"
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 }}
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- 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
21
14
- uses : actions/cache@v4
22
15
name : cache solana cli
23
16
id : cache-solana
@@ -171,7 +164,7 @@ jobs:
171
164
anchor test
172
165
173
166
- 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') }}
175
168
run : |
176
169
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
177
170
cargo install --path cli --force --locked
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ proc-macro = true
13
13
14
14
[dependencies ]
15
15
syn = { workspace = true }
16
- bolt-utils = { path = " ../../utils " }
16
+ bolt-utils = { workspace = true }
17
17
quote = { workspace = true }
18
18
proc-macro2 = { workspace = true }
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ proc-macro = true
13
13
14
14
[dependencies ]
15
15
syn = { workspace = true }
16
- bolt-utils = { path = " ../../utils " }
16
+ bolt-utils = { workspace = true }
17
17
quote = { workspace = true }
18
18
proc-macro2 = { workspace = true }
You can’t perform that action at this time.
0 commit comments