Skip to content

Commit 3ca9869

Browse files
committed
feat: add support for custom plugins in semantic-release workflow
1 parent 4808d05 commit 3ca9869

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
description: "The environment to deploy to."
1616
required: false
1717
type: string
18+
PLUGINS:
19+
description: "Additional plugins to install. Example `@semantic-release/npm`."
20+
required: false
21+
type: string
22+
default: ""
1823
secrets:
1924
RELEASE_GH_TOKEN:
2025
description: "GitHub Token. Used to authenticate with GitHub at release step. This will overwrite the use of the default GitHub token."
@@ -71,7 +76,7 @@ jobs:
7176
with:
7277
node-version: "lts/*"
7378
- name: Install dependencies
74-
run: npm install semantic-release @semantic-release/exec @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/release-notes-generator conventional-changelog-conventionalcommits -D
79+
run: npm install semantic-release @semantic-release/exec @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/release-notes-generator conventional-changelog-conventionalcommits ${{ inputs.PLUGINS }} -D
7580
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
7681
run: npm audit signatures
7782
- name: Detect if configuration file is available for semantic-release

0 commit comments

Comments
 (0)