File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 67
67
uses : actions/checkout@v4
68
68
69
69
- name : Set DRY_RUN based on trigger
70
+ shell : bash
70
71
run : echo "DRY_RUN=true" >> $GITHUB_ENV
71
72
if : github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/v')
72
73
@@ -168,7 +169,7 @@ jobs:
168
169
- name : Publish the NPM package
169
170
run : |
170
171
echo "DRY_RUN=${DRY_RUN}"
171
- cd ${{ env.node_pkg } }
172
+ cd ${NODE_PKG }
172
173
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
173
174
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
174
175
if [ "${DRY_RUN}" = "true" ]; then
@@ -177,9 +178,11 @@ jobs:
177
178
else
178
179
npm publish --access public
179
180
fi
181
+ shell : bash
180
182
env :
181
183
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
182
184
DRY_RUN : ${{ env.DRY_RUN }}
185
+ NODE_PKG : ${{ env.node_pkg }}
183
186
publish-wrapper-npm-package :
184
187
name : Publish wrapper NPM packages
185
188
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change @@ -163,7 +163,12 @@ jobs:
163
163
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
164
164
anchor test
165
165
166
+ - name : Print github.ref
167
+ shell : bash
168
+ run : echo "The current github.ref is ${{ github.ref }}"
169
+
166
170
- name : Install the Bolt CLI and create & build a new project
171
+ shell : bash
167
172
if : ${{ !startsWith(github.ref, 'refs/heads/release/v') }}
168
173
run : |
169
174
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
You can’t perform that action at this time.
0 commit comments