Skip to content

Commit

Permalink
Changed name of version var
Browse files Browse the repository at this point in the history
  • Loading branch information
drodrigues4 committed Jul 24, 2024
1 parent 2903d1a commit 2df9688
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-fork-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
VERSION: 0.32.1-${{ github.sha }}
PACKAGE_VERSION: 0.32.1-${{ github.sha }}

jobs:
release:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
working-directory: ${{ matrix.package }}
run: |
jq '.name="@drodrigues4/${{ matrix.package }}"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
jq '.version="$VERSION"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
jq '.version="$PACKAGE_VERSION"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
jq 'del(.publishConfig.provenance)' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json
pnpm build
Expand Down Expand Up @@ -169,10 +169,10 @@ jobs:
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
echo "Publishing ${{ matrix.package }}@$VERSION"
echo "Publishing ${{ matrix.package }}@$PACKAGE_VERSION"
npm publish package.tgz --access public
echo "npm: \`+ ${{ matrix.package }}@$VERSION\`" >> $GITHUB_STEP_SUMMARY
echo "npm: \`+ ${{ matrix.package }}@$PACKAGE_VERSION\`" >> $GITHUB_STEP_SUMMARY
# Post release message to Discord
# curl -X POST -H "Content-Type: application/json" -d "{\"embeds\": [{\"title\": \"New \`${{ matrix.package }}\` release! 🎉\", \"url\": \"https://www.npmjs.com/package/${{ matrix.package }}\", \"color\": \"12907856\", \"fields\": [{\"name\": \"Tag\", \"value\": \"\`$tag\`\"}]}]}" ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}

0 comments on commit 2df9688

Please sign in to comment.