Skip to content

Commit 182e673

Browse files
authored
test: Quality assurance (#1)
1 parent e543013 commit 182e673

File tree

5 files changed

+6821
-46
lines changed

5 files changed

+6821
-46
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "lts/*"
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Verify dependency signatures
31+
run: npm audit signatures || echo "Some dependency signatures could not be verified!"
32+
33+
- name: Run semantic-release
34+
run: npx semantic-release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
2-
"branches": [
3-
"main"
4-
],
5-
"tagFormat": "${version}",
6-
"plugins": [
7-
[
8-
"@semantic-release/commit-analyzer",
9-
{
10-
"preset": "angular"
11-
}
2+
"branches": [
3+
"main"
124
],
13-
[
14-
"@semantic-release/release-notes-generator",
15-
{
16-
"preset": "angular"
17-
}
18-
],
19-
[
20-
"@semantic-release/changelog",
21-
{
22-
"changelogTitle": "# Changelog\n\nAll notable changes to this project are documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
23-
}
24-
],
25-
[
26-
"@semantic-release/git",
27-
{
28-
"assets": ["CHANGELOG.md"],
29-
"message": "chore: Release ${nextRelease.version}\n\n${nextRelease.notes}"
30-
}
31-
]
5+
"tagFormat": "${version}",
6+
"plugins": [
7+
[
8+
"@semantic-release/commit-analyzer",
9+
{
10+
"preset": "angular"
11+
}
12+
],
13+
[
14+
"@semantic-release/release-notes-generator",
15+
{
16+
"preset": "angular"
17+
}
18+
],
19+
[
20+
"@semantic-release/changelog",
21+
{
22+
"changelogTitle": "# Changelog\n\nAll notable changes to this project are documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines."
23+
}
24+
],
25+
[
26+
"@semantic-release/git",
27+
{
28+
"assets": ["CHANGELOG.md"],
29+
"message": "chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
30+
}
31+
]
3232
]
3333
}

CONTRIBUTING.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ it easier to get your contribution accepted.
77

88
## Getting Started
99

10-
* Fork the repository on GitHub.
10+
* Fork the repository.
1111
* Read the [README.md](./README.md) for usage/test instructions.
1212
* Play with the project, submit bugs or patches.
1313

1414
### Contribution Flow
1515

16-
>💡 The private upstream of this repository uses [GitLab CI](.gitlab-ci.yml)
16+
>💡 This repository uses [GitHub Actions](.github/workflows)
1717
for automation. Changes merged into the main branch trigger the creation of
18-
new tag and auto-generated [CHANGELOG.md](./CHANGELOG.md) updates.
18+
new tag and an auto-generated [CHANGELOG.md](./CHANGELOG.md).
1919

2020
On the contributors' side:
2121
1. Create a topic branch from the main brach to base your work on.
22-
2. Make commits of logical units (checkout
23-
[commit guidelines](#commit-guidelines) below).
22+
2. Make commits of logical units.
2423
3. Push changes to a topic branch in your GitHub fork of this
2524
repository.
2625
4. Make sure to validate changes by running tests on a
@@ -31,24 +30,22 @@ review/approval.
3130

3231
On the maintainers' side:
3332

34-
1. Review, validate/test internally, and provide feedback prior to porting the
35-
changes into a topic branch in the private GitLab project upstream.
36-
2. Upon approval, squash-merge changes in the upstream, making sure to write a
37-
conventional commit message title during said squashing operation and
38-
including full acknowledgement of the contributors (i.e. list their GitHub handles)
39-
in the commit body.
40-
3. Verify the CI automation updates the [CHANGELOG.md](./CHANGELOG.md) and
41-
creates a new `git tag` on the main branch.
42-
4. Verify the latest changes are mirrored downstream and mark the relevant GitHub
43-
issue as resolved.
33+
1. Review, validate/test internally, and provide feedback prior to approving
34+
the pull request.
35+
2. Upon approval, squash-merge the changes, making sure to provide a relevant
36+
conventional commit message title (checkout
37+
[commit guidelines](#commit-guidelines) below).
38+
3. Verify the CI automation updates the [CHANGELOG.md](./CHANGELOG.md),
39+
and creates a new `git tag` on the main branch.
40+
4441

4542
### Commit Guidelines
4643

4744
This repository enforces
4845
[conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
4946
to mark breaking, major and minor code changes in accordance with the
5047
[Semantic Versioning](https://semver.org/) standard:
51-
- Commits that are merged to the main branch should always be prefixed by
48+
- Commits that land on the main branch should always be prefixed by a
5249
specific keyword (i.e. `docs`, `style`, `feat`, `fix`, `refactor`, `ci`,
5350
`chore` or `test`)
5451
- Value is communicated to the end-users by three of the prefixes:
@@ -64,4 +61,3 @@ for reporting vulnerabilities. If you suspect you have found a security
6461
vulnerability, please do not file a GitHub issue, but instead email
6562
6663
full details, including steps to reproduce the issue.
67-

0 commit comments

Comments
 (0)