Skip to content

Commit ce0ecfb

Browse files
committed
👷 Update workflow
1 parent b59b11b commit ce0ecfb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/publish-packages.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
uses: actions/checkout@v4
6868

6969
- name: Set DRY_RUN based on trigger
70+
shell: bash
7071
run: echo "DRY_RUN=true" >> $GITHUB_ENV
7172
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/v')
7273

@@ -168,7 +169,7 @@ jobs:
168169
- name: Publish the NPM package
169170
run: |
170171
echo "DRY_RUN=${DRY_RUN}"
171-
cd ${{ env.node_pkg }}
172+
cd ${NODE_PKG}
172173
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
173174
npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
174175
if [ "${DRY_RUN}" = "true" ]; then
@@ -177,9 +178,11 @@ jobs:
177178
else
178179
npm publish --access public
179180
fi
181+
shell: bash
180182
env:
181183
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
182184
DRY_RUN: ${{ env.DRY_RUN }}
185+
NODE_PKG: ${{ env.node_pkg }}
183186
publish-wrapper-npm-package:
184187
name: Publish wrapper NPM packages
185188
runs-on: ubuntu-20.04

.github/workflows/run-tests.yml

+5
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ jobs:
163163
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
164164
anchor test
165165
166+
- name: Print github.ref
167+
shell: bash
168+
run: echo "The current github.ref is ${{ github.ref }}"
169+
166170
- name: Install the Bolt CLI and create & build a new project
171+
shell: bash
167172
if: ${{ !startsWith(github.ref, 'refs/heads/release/v') }}
168173
run: |
169174
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"

0 commit comments

Comments
 (0)