Skip to content

Commit f625065

Browse files
chore(ci): remove publishToNpm input, always publish to npm
1 parent 0f99c8a commit f625065

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/actions/semantic-release/action.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ inputs:
1010
description: Destination path for the downloaded build artifact
1111
default: dist
1212
required: false
13-
publishToNpm:
14-
description: Enable this to publish artifacts to NPM
15-
required: false
1613
withoutBuiltArtifact:
1714
description: Indicates that no artifact should be downloaded
1815
required: false
@@ -51,8 +48,7 @@ runs:
5148
token: ${{ inputs.GITHUB_TOKEN }}
5249

5350
# install node_modules since there might be a dependency from husky which is invoked during npm publish
54-
- if: inputs.publishToNpm == 'true'
55-
uses: ./.github/actions/npm-install
51+
- uses: ./.github/actions/npm-install
5652

5753
- if: inputs.withoutBuiltArtifact != 'true'
5854
name: Download artifact
@@ -79,7 +75,6 @@ runs:
7975
echo ""
8076
8177
- name: Configure npm for GitHub Packages
82-
if: inputs.publishToNpm == 'true'
8378
shell: bash
8479
run: |
8580
npm config set @cloudbeds:registry https://npm.pkg.github.com
@@ -110,7 +105,7 @@ runs:
110105
if (inputs.withoutNpmPlugin !== 'true') {
111106
plugins.push([
112107
'@semantic-release/npm',
113-
{ npmPublish: inputs.publishToNpm === 'true' },
108+
{ npmPublish: true },
114109
]);
115110
}
116111

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ jobs:
2424
- name: Semantic Release
2525
uses: cloudbeds/webpack-module-federation-types-plugin/.github/actions/semantic-release@main
2626
with:
27-
publishToNpm: true
2827
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)