Skip to content

Commit 2d60d7e

Browse files
authored
fix: versioning (#92)
* fix: versioning * ci: add renovate
1 parent c757f2d commit 2d60d7e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/publish.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
- alpha
8+
- beta
79

810
jobs:
911
run-tests:

.github/workflows/test.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- alpha
8+
- beta
79

810
# Allow workflow to be called by another workflow
911
workflow_call:
@@ -43,7 +45,8 @@ jobs:
4345

4446
- name: Publish package preview
4547
id: package-preview
46-
if: github.event_name == 'pull_request'
48+
# Do not run for `alpha` or `beta` branches
49+
if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]' && !contains(github.head_ref || github.ref_name, 'alpha') && !contains(github.head_ref || github.ref_name, 'beta')
4750
env:
4851
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
4952
run: |

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ This will trigger the Commitizen interactive prompt for building your commit mes
426426

427427
[Lefthook](https://github.com/evilmartians/lefthook) is used to manage Git Hooks within the repo.
428428

429-
- A `commit-msg` hook is automatically setup that enforces commit message stands with `commitlint`, see [`lefthook.yml`](./lefthook.yaml)
429+
- A `commit-msg` hook is automatically setup that enforces commit message stands with `commitlint`, see [`lefthook.yaml`](./lefthook.yaml)
430430
- A `pre-push` hook is used that runs `eslint` before allowing you to push your changes to the repository
431431

432432
Additionally, CI will use `commitlint` to validate the commits associated with a PR in the `Lint and Validate` job.

0 commit comments

Comments
 (0)