Skip to content

Commit

Permalink
fix publish action working directory (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored Sep 19, 2024
1 parent 0a4480b commit eb058b1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
publish:
runs-on: ubuntu-latest

defaults:
run:
working-directory: './wormhole-connect'

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -25,12 +29,11 @@ jobs:
- run: npm run lint:ci
- run: |
IFS='@' read -a strarr <<< $(git describe --tags)
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect/package.json
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" package.json
npm run build:lib
npm run build:hosted
cp README.md wormhole-connect/
cp wormhole-connect.png wormhole-connect/
cd wormhole-connect
cp ../README.md .
cp ../wormhole-connect.png .
npm publish --tag $(echo $([ ${strarr[0]} == "production" ] && echo "latest" || echo ${strarr[0]})) --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit eb058b1

Please sign in to comment.