Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/publish-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org
- name: Setup GIT
run: |
git config user.email '$GITHUB_ACTOR@users.noreply.github.com'
Expand All @@ -83,12 +82,19 @@ jobs:
else
echo "::set-output name=is_prerelease::false"
fi
- name: Remove npm auth config (for trusted publishing)
run: |
echo "NPM_CONFIG_USERCONFIG=$NPM_CONFIG_USERCONFIG"
if [ -n "$NPM_CONFIG_USERCONFIG" ] && [ -f "$NPM_CONFIG_USERCONFIG" ]; then
rm -f "$NPM_CONFIG_USERCONFIG"
echo "Removed temp .npmrc"
else
echo "No temp .npmrc found"
fi
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install -g npm@latest
NODE_AUTH_TOKEN=""
if [ ${{ steps.prerelease_check.outputs.is_prerelease }} == "true" ]; then
yarn release ${{ needs.checkingVersion.outputs.newVersion }} --pre-release --no-plugins.@release-it/keep-a-changelog.strictLatest --ci
else
Expand Down