Skip to content

Commit

Permalink
Merge pull request #871 from webdriverio-community/sm/remove-release-it
Browse files Browse the repository at this point in the history
ci: improve logging, enable husky precommit hooks
  • Loading branch information
goosewobbler authored Dec 12, 2024
2 parents ce67058 + 2df1855 commit cc9161a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ on:
env:
DRY_RUN_ARG: ${{ inputs.dryRun && '--dry-run' || '' }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: '0'

jobs:
release:
Expand All @@ -53,11 +52,6 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "WebdriverIO Release Bot"
# - name: Pushing to the protected branch 'main'
# uses: CasperWA/push-protected@v2
# with:
# token: ${{ secrets.DEPLOY_PAT }}
# branch: main
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
Expand All @@ -82,12 +76,14 @@ jobs:
run: |
echo "Git log:"
git log --oneline -n 5
echo "Git tags:"
git tag
# get release tag
RELEASE_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "Release tag: $RELEASE_TAG"
echo "Pushing tags and commits..."
git push --tags && git push
# push tags and commits without running the pre-push hook
git push --tags --no-verify && git push --no-verify
# pass the release tag to the next step
echo "RELEASE_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
echo "$RELEASE_TAG" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm dlx lint-staged --allow-empty
pnpx lint-staged --allow-empty

0 comments on commit cc9161a

Please sign in to comment.