Skip to content

Commit

Permalink
feat: add config-file option to specify custom configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinnot authored Feb 4, 2021
1 parent a81483a commit 1d7cff3
Show file tree
Hide file tree
Showing 19 changed files with 2,665 additions and 2,422 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- cspell:ignore YALM -->

[![license](https://img.shields.io/github/license/ridedott/release-me-action)](https://github.com/ridedott/release-me-action/blob/master/LICENSE)
[![GitHub Actions Status](https://github.com/ridedott/release-me-action/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/ridedott/release-me-action/actions)
[![GitHub Actions Status](https://github.com/ridedott/release-me-action/workflows/Continuous%20Delivery/badge.svg?branch=master)](https://github.com/ridedott/release-me-action/actions)
Expand Down Expand Up @@ -60,6 +62,15 @@ steps:
release-rules:
'[{ "release": "patch", "type": "build" }, { "release": "patch", "type":
"chore(deps)" }, { "release": "patch", "type": "chore(deps-dev)" }]'
# Loads a custom Semantic Release configuration from this file. See
# https://semantic-release.gitbook.io/semantic-release/usage/configuration#configuration-file.
# Provided configuration will be shallow merged with defaults. Supported
# formats are YALM or CommonJS.
config-file: ./path/to/config.yaml
# Specify additional semantic-release plugins to install. Accepts packages
# in typical package.json format.
additional-plugins:
'{ "@google/semantic-release-replace-plugin": "^4.0.2" }'
```

**IMPORTANT** `GITHUB_TOKEN` does not have the required permissions to operate
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ branding:
icon: package
description: A GitHub Action for Semantic Release.
inputs:
additional-plugins:
description: Additional semantic-release plugins to install.
required: false
commit-assets:
description:
Configures the list of assets to commit to the repository alongside the
changelog.
required: false
config-file:
description:
YAML or CommonJS module from which to load a semantic-release
configuration.
required: false
disable-changelog:
default: 'false'
description: Skips generating a CHANGELOG.md file.
Expand Down
9 changes: 7 additions & 2 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// eslint-disable-next-line immutable/no-mutation
module.exports = {
/* cspell:ignore lcov */

import type { Config } from '@jest/types';

const configuration: Config.InitialOptions = {
coveragePathIgnorePatterns: ['/node_modules/'],
coverageReporters: ['lcov', 'text', 'text-summary'],
coverageThreshold: {
Expand All @@ -16,3 +19,5 @@ module.exports = {
roots: ['<rootDir>/src', '<rootDir>/__mocks__'],
testEnvironment: 'node',
};

export default configuration;
Loading

0 comments on commit 1d7cff3

Please sign in to comment.