Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5d236d

Browse filesBrowse files
committed
Auto-generated commit
1 parent e5658b5 commit b5d236d
Copy full SHA for b5d236d

File tree

3 files changed

+25
-60
lines changed
Filter options

3 files changed

+25
-60
lines changed

‎.github/.keepalive

Copy file name to clipboardExpand all lines: .github/.keepalive
-1Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.github/workflows/productionize.yml

Copy file name to clipboardExpand all lines: .github/workflows/productionize.yml
+25-19Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,15 @@ jobs:
202202
run: |
203203
git checkout -b deno origin/deno
204204
205-
find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm
206-
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf
205+
find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm
206+
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
211-
git merge -s recursive -X theirs origin/production --allow-unrelated-histories
211+
git config merge.theirs.name 'simulate `-s theirs`'
212+
git config merge.theirs.driver 'cat %B > %A'
213+
GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories
212214
213215
# If `deno` does not exist, create `deno` branch:
214216
- name: 'If `deno` does not exist, create `deno` branch'
@@ -292,8 +294,8 @@ jobs:
292294
# Delete everything in current directory aside from deno folder:
293295
- name: 'Delete everything in current directory aside from deno folder'
294296
run: |
295-
find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs rm
296-
find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs rm -rf
297+
find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm
298+
find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf
297299
298300
# Move deno directory to root:
299301
- name: 'Move deno directory to root'
@@ -375,13 +377,15 @@ jobs:
375377
run: |
376378
git checkout -b umd origin/umd
377379
378-
find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm
379-
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf
380+
find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm
381+
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
380382
381383
git add -A
382-
git commit -m "Remove files"
384+
git commit -m "Remove files" --allow-empty
383385
384-
git merge -s recursive -X theirs origin/production --allow-unrelated-histories
386+
git config merge.theirs.name 'simulate `-s theirs`'
387+
git config merge.theirs.driver 'cat %B > %A'
388+
GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories
385389
386390
# If `umd` does not exist, create `umd` branch:
387391
- name: 'If `umd` does not exist, create `umd` branch'
@@ -458,13 +462,13 @@ jobs:
458462
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"
459463
460464
# Create package.json file for umd branch:
461-
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
462466
463467
# Delete everything in current directory aside from umd folder:
464468
- name: 'Delete everything in current directory aside from umd folder'
465469
run: |
466-
find . -type 'f' | grep -v -e "umd" -e ".git/" | xargs rm
467-
find . -mindepth 1 -type 'd' | grep -v -e "umd" -e ".git" | xargs rm -rf
470+
find . -type 'f' | grep -v -e "umd" -e ".git/" | xargs -r rm
471+
find . -mindepth 1 -type 'd' | grep -v -e "umd" -e ".git" | xargs -r rm -rf
468472
469473
# Move umd directory to root:
470474
- name: 'Move umd directory to root'
@@ -546,13 +550,15 @@ jobs:
546550
run: |
547551
git checkout -b esm origin/esm
548552
549-
find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm
550-
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf
553+
find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm
554+
find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf
551555
552556
git add -A
553-
git commit -m "Remove files"
557+
git commit -m "Remove files" --allow-empty
554558
555-
git merge -s recursive -X theirs origin/production --allow-unrelated-histories
559+
git config merge.theirs.name 'simulate `-s theirs`'
560+
git config merge.theirs.driver 'cat %B > %A'
561+
GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories
556562
557563
# If `esm` does not exist, create `esm` branch:
558564
- name: 'If `esm` does not exist, create `esm` branch'
@@ -640,8 +646,8 @@ jobs:
640646
# Delete everything in current directory aside from esm folder:
641647
- name: 'Delete everything in current directory aside from esm folder'
642648
run: |
643-
find . -type 'f' | grep -v -e "esm" -e ".git/" | xargs rm
644-
find . -mindepth 1 -type 'd' | grep -v -e "esm" -e ".git" | xargs rm -rf
649+
find . -type 'f' | grep -v -e "esm" -e ".git/" | xargs -r rm
650+
find . -mindepth 1 -type 'd' | grep -v -e "esm" -e ".git" | xargs -r rm -rf
645651
646652
# Move esm directory to root:
647653
- name: 'Move esm directory to root'

‎.github/workflows/publish.yml

Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
-40Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -91,46 +91,6 @@ jobs:
9191
channel: '#npm-ci'
9292
if: failure()
9393

94-
# Define job to increment semver version and commit the changes to main branch...
95-
increment:
96-
97-
# Define the type of virtual host machine on which to run the job:
98-
runs-on: ubuntu-latest
99-
100-
# Define the sequence of job steps...
101-
steps:
102-
103-
# Checkout main branch of repository:
104-
- name: 'Checkout main branch'
105-
uses: actions/checkout@v3
106-
with:
107-
ref: main
108-
109-
# Increment version:
110-
- name: 'Increment version in `package.json` to the version number of the tag'
111-
run: |
112-
VERSION=$(echo ${{ github.ref }} | sed -E 's/refs\/tags\/v?([0-9]+.[0-9]+.[0-9]+).*/\1/')
113-
sed -Ei "s/\"version\": \"[^\"]+\"/\"version\": \"$VERSION\"/g" package.json
114-
115-
# Configure git:
116-
- name: 'Configure git'
117-
run: |
118-
git config --local user.email "noreply@stdlib.io"
119-
git config --local user.name "stdlib-bot"
120-
121-
# Commit changes:
122-
- name: 'Commit changes'
123-
run: |
124-
git add package.json
125-
git commit -m "Auto-generated commit"
126-
127-
# Push changes:
128-
- name: 'Push changes'
129-
run: |
130-
SLUG=${{ github.repository }}
131-
echo "Pushing changes to $SLUG..."
132-
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" main
133-
13494
# Define job to cancel any running or queued workflow runs...
13595
cancel:
13696

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.