Skip to content

Commit 8b0d2ac

Browse files
committed
fix: npm release failed for path because of unused path
1 parent f9834ce commit 8b0d2ac

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Publish to NPM
102102
env:
103103
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
104-
run: npm run publish-all
104+
run: npm run publish --workspace=${{ matrix.release }}
105105

106106
- name: Build Docs
107107
run: npm run docs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint:fix": "npm run lint:fix --workspace=packages/core --workspace=packages/react",
1010
"clean": "shx rm -rf ./dist",
1111
"build": "npm run build --workspace=packages/core --workspace=packages/react",
12-
"publish-all": "npm run publish-if-not-exists --workspace=packages/core --workspace=packages/react",
12+
"publish": "npm run publish --workspace=packages/core --workspace=packages/react",
1313
"docs": "typedoc",
1414
"core-version": "npm run version --workspace=packages/core",
1515
"update-core-peers": "export OPENSOCKET_CORE_VERSION=$(npm run --silent core-version) && npm run update-core-peer --workspace=packages/react"

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json",
2626
"current-version": "echo $npm_package_version",
2727
"prepack": "shx cp ./../../LICENSE ./LICENSE",
28-
"publish-if-not-exists": "if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi"
28+
"publish": "if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi"
2929
},
3030
"repository": {
3131
"type": "git",

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json",
2626
"current-version": "echo $npm_package_version",
2727
"prepack": "shx cp ./../../LICENSE ./LICENSE",
28-
"publish-if-not-exists": "if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
28+
"publish": "if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
2929
"update-core-peer": "npm install --save-peer --save-exact @opensocket/core-js@$OPENFEATURE_CORE_VERSION"
3030
},
3131
"repository": {

0 commit comments

Comments
 (0)