Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@adfinis-sygroup/semantic-release-config
Advanced tools
Shared semantic release configuration for Adfinis projects
Sharable configuration for semantic release.
Currently, this config is only a slight modification of the default config:
package.json
and CHANGELOG.md
to repository after deploymentInstall the npm package
yarn add --dev @adfinis-sygroup/semantic-release-config
and add the following to the extends
property of your semantic release configuration:
{
"extends": "@adfinis-sygroup/semantic-release-config"
}
This repo also contains commitlint. Configure it to check that commit messagesas are formatted according to the conventional commit format by adding the following to package.json
:
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
Set up a pre-commit hook to integrate it; e.g. by installing husky:
yarn add husky --dev
then adding the following to package.json
:
{
"scripts": {
"prepare": "husky install"
}
}
and adding the following script (with execute permissions) to .husky/pre-commit
:
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# skip in CI
[ -n "$CI" ] && exit 0
# lint commit message
yarn commitlint --edit $1
Example for a release Github workflow:
name: Release
on: workflow_dispatch
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
- name: Install dependencies
run: yarn install
- name: Release on NPM
run: yarn semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Optionally, you can also set up commitizen for a more interactive way of adding commits:
$ git cz
? Select the type of change that you're committing:
? What is the scope of this change (e.g. component or file name)?
? Write a short, imperative tense description of the change:
? Provide a longer description of the change: (press enter to skip)
? Are there any breaking changes? No
? Does this change affect any open issues? No
Setup is simple:
npm install -g commitizen
commitizen init cz-conventional-changelog --yarn --dev --exact
After, run git cz
instead of git commit
.
FAQs
Shared semantic release configuration for Adfinis projects
The npm package @adfinis-sygroup/semantic-release-config receives a total of 0 weekly downloads. As such, @adfinis-sygroup/semantic-release-config popularity was classified as not popular.
We found that @adfinis-sygroup/semantic-release-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.