-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #871 from webdriverio-community/sm/remove-release-it
ci: improve logging, enable husky precommit hooks
- Loading branch information
Showing
2 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ on: | |
env: | ||
DRY_RUN_ARG: ${{ inputs.dryRun && '--dry-run' || '' }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
HUSKY: '0' | ||
|
||
jobs: | ||
release: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pnpm dlx lint-staged --allow-empty | ||
pnpx lint-staged --allow-empty |