Skip to content

Commit

Permalink
ci: fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
nilzona committed May 14, 2024
1 parent d7c82a2 commit 7de57ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
jq --arg version "$VERSION" '.version = $version' package.json > temp.json && mv temp.json package.json
cat package.json
# Set the default user-agent.
ls ./chunks > /dev/null || echo "Missing chunks directory!" && exit 1
find ./chunks -type f -exec sed -i "s;defaultUserAgent = \"qlik-api/latest\";defaultUserAgent = \"qlik-api/$VERSION\";g" -- {} +
ls ./chunks >/dev/null || (echo "Missing chunks directory!" && exit 1)
find ./chunks -type f -exec sed -i.bak -e "s;defaultUserAgent = \"qlik-api/latest\";defaultUserAgent = \"qlik-api/$VERSION\";g" -- {} +
rm -f ./chunks/*.bak
# Publish npm package
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
pnpm-lock.yaml

0 comments on commit 7de57ed

Please # to comment.