Skip to content

Commit eb058b1

Browse files
authored
fix publish action working directory (#2661)
1 parent 0a4480b commit eb058b1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
publish:
1313
runs-on: ubuntu-latest
1414

15+
defaults:
16+
run:
17+
working-directory: './wormhole-connect'
18+
1519
steps:
1620
- uses: actions/checkout@v3
1721
with:
@@ -25,12 +29,11 @@ jobs:
2529
- run: npm run lint:ci
2630
- run: |
2731
IFS='@' read -a strarr <<< $(git describe --tags)
28-
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect/package.json
32+
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" package.json
2933
npm run build:lib
3034
npm run build:hosted
31-
cp README.md wormhole-connect/
32-
cp wormhole-connect.png wormhole-connect/
33-
cd wormhole-connect
35+
cp ../README.md .
36+
cp ../wormhole-connect.png .
3437
npm publish --tag $(echo $([ ${strarr[0]} == "production" ] && echo "latest" || echo ${strarr[0]})) --access public
3538
env:
3639
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)