Skip to content

Commit

Permalink
chore: clean up release workflow and script by removing commented-out…
Browse files Browse the repository at this point in the history
… commands
  • Loading branch information
lgersman committed Dec 3, 2024
1 parent 4381d7f commit 3afce08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
pnpm install --frozen-lockfile
export GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"
export GITHUB_REPOSITORY="${{ github.repository }}"
pnpm release
Expand Down
9 changes: 4 additions & 5 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ set -x
# see https://github.com/actions/checkout/pull/1184#issue-1595060720
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}"

git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
# git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

# https://github.com/IONOS-WordPress/ionos-wordpress.git
# https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/USER/REPO.git
Expand All @@ -80,9 +79,9 @@ pnpm changeset tag
# push changes and tags
git push && git push --tags

echo "try 2"
git remote set-url origin https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push && git push --tags
# echo "try 2"
# git remote set-url origin https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
# git push && git push --tags

# ensure ./tmp/release is a fresh empty directory
rm -rf ./tmp/release
Expand Down

0 comments on commit 3afce08

Please sign in to comment.