diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b33c9d5..7cea474 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee89780 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +pnpm-lock.yaml