diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 7f2d32154..969d20a70 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -24,7 +24,9 @@ jobs: echo "----- ----- ----- ----- -----" echo "$RETURN_TAGS" echo "----- ----- ----- ----- -----" + echo "TAGS<> $GITHUB_ENV echo "TAGS=$RETURN_TAGS" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - uses: EndBug/add-and-commit@v9 diff --git a/scripts/createRelease.js b/scripts/createRelease.js index 128001537..f8d3255ae 100644 --- a/scripts/createRelease.js +++ b/scripts/createRelease.js @@ -3,10 +3,12 @@ const fs = require('fs') const { getOctokit, context } = require('@actions/github') -const tags = process.argv.slice(2) +const tags = process.argv.slice(3) const github = getOctokit(process.env.GITHUB_TOKEN) const { owner, repo } = context.repo +console.warn(`-------------------------------${tags.join('')}`) + const camelize = (strings, all = false) => (all ? '' : strings[0]) + strings