Skip to content

Commit 91682c6

Browse files
committed
chore: fix force publish [force-publish]
1 parent 9332ad2 commit 91682c6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
run: yarn workspace @standardnotes/community-cdn compile
5555

5656
- name: Release
57+
if: ${{ env.FORCE_PUBLISH != 'true' }}
5758
run: yarn run release
5859

59-
- name: Force Publish
60+
- name: Force Release
6061
if: ${{ env.FORCE_PUBLISH == 'true' }}
61-
run: yarn run publish:force
62+
run: yarn run release:force
6263

6364
- name: Publish
64-
if: ${{ env.FORCE_PUBLISH != 'true' }}
6565
run: yarn run publish

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"cdn"
1313
]
1414
},
15-
"scripts": {
15+
"scripts": {
1616
"build": "yarn workspaces foreach --verbose --interlaced -pt --topological-dev --jobs 10 run build",
1717
"clean": "lerna run clean",
1818
"release": "lerna version --conventional-commits --yes -m \"chore(release): publish\"",
19-
"publish": "lerna publish from-git --yes --no-verify-access --loglevel verbose --registry https://registry.npmjs.org",
20-
"publish:force": "lerna publish from-git --yes --no-verify-access --loglevel verbose --registry https://registry.npmjs.org --ignore sn-excalidraw --force-publish",
19+
"release:force": "lerna version --conventional-commits --yes -m \"chore(release): publish\" --force-publish \"*\"",
20+
"publish": "lerna publish from-git --yes --no-verify-access --loglevel verbose --registry https://registry.npmjs.org --ignore sn-excalidraw",
2121
"version": "yarn install --no-immutable && git add yarn.lock",
2222
"postversion": "./scripts/push-tags-one-by-one.sh",
2323
"dev:reset": "find . -type dir -name node_modules | xargs rm -rf && rm -rf yarn.lock && yarn install",

0 commit comments

Comments
 (0)