diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 06f25a6..85d10fd 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -2,7 +2,7 @@ name: Publish release on: push: - branches: [ main ] + branches: [main] jobs: release-please: @@ -12,6 +12,3 @@ jobs: id: release with: token: ${{ secrets.GITHUB_TOKEN }} - release-type: node - package-name: "@inclusive-design/guide" - pull-request-title-pattern: "chore(release): release${component} ${version}" diff --git a/.husky/commit-message b/.husky/commit-message index b567676..da99483 100755 --- a/.husky/commit-message +++ b/.husky/commit-message @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no -- commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 41ae0d5..718da8a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx --no lint-staged diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..37fcefa --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.0.0" +} diff --git a/commitlint.config.js b/commitlint.config.js index 8f04e00..0fca76f 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,5 +1 @@ -"use strict"; - -module.exports = { - extends: ["@commitlint/config-conventional"] -}; +export default {extends: ['@commitlint/config-conventional']}; diff --git a/package.json b/package.json index 7f32079..da0fef7 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "start": "npm-run-all -l clean -p start:*", "start:eleventy": "cross-env NODE_ENV=development eleventy --serve", "start:cms": "decap-server", - "prepare": "husky install" + "prepare": "husky" }, "repository": { "type": "git", diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..9996b17 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,14 @@ +{ + "changelog-path": "CHANGELOG.md", + "release-type": "node", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false, + "packages": { + ".": { + "include-component-in-tag": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}