Skip to content

Commit 760ae39

Browse files
committed
Allow empty commits and change entry for UMD branch
1 parent 64b1873 commit 760ae39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/_tools/scripts/templates/workflow_productionize.yml.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
207207

208208
git add -A
209-
git commit -m "Remove files"
209+
git commit -m "Remove files" --allow-empty
210210

211211
git config merge.theirs.name 'simulate `-s theirs`'
212212
git config merge.theirs.driver 'cat %B > %A'
@@ -381,7 +381,7 @@ jobs:
381381
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
382382

383383
git add -A
384-
git commit -m "Remove files"
384+
git commit -m "Remove files" --allow-empty
385385

386386
git config merge.theirs.name 'simulate `-s theirs`'
387387
git config merge.theirs.driver 'cat %B > %A'
@@ -462,7 +462,7 @@ jobs:
462462
find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<script type=\"text\/javascript\">([\s\S]+?)<\/script>/<script type=\"text\/javascript\">\n\(function \(\) {\1}\)\(\);\n<\/script>/g"
463463

464464
# Create package.json file for umd branch:
465-
jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "main": "./browser.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./umd/package.json
465+
jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "main": "./index.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./umd/package.json
466466

467467
# Delete everything in current directory aside from umd folder:
468468
- name: 'Delete everything in current directory aside from umd folder'
@@ -554,7 +554,7 @@ jobs:
554554
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
555555

556556
git add -A
557-
git commit -m "Remove files"
557+
git commit -m "Remove files" --allow-empty
558558

559559
git config merge.theirs.name 'simulate `-s theirs`'
560560
git config merge.theirs.driver 'cat %B > %A'

0 commit comments

Comments
 (0)