25
25
push :
26
26
branches :
27
27
- main
28
- tags_ignore :
28
+ tags-ignore :
29
29
- ' v[0-9]+\.[0-9]+\.[0-9]+'
30
30
31
31
# Workflow jobs:
32
32
jobs :
33
33
deno :
34
34
runs-on : ubuntu-latest
35
35
steps :
36
- - uses : actions/checkout@v2
36
+ - uses : actions/checkout@v3
37
37
- name : Copy files to deno directory
38
38
run : |
39
39
mkdir -p deno
92
92
github_token : ${{ secrets.GITHUB_TOKEN }}
93
93
publish_dir : ./deno
94
94
publish_branch : deno
95
- keep_files : true
95
+ force_orphan : true
96
96
user_name : ' stdlib-bot'
97
97
user_email : ' noreply@stdlib.io'
98
98
commit_message : ' Auto-generated commit'
@@ -107,7 +107,7 @@ jobs:
107
107
umd :
108
108
runs-on : ubuntu-latest
109
109
steps :
110
- - uses : actions/checkout@v2
110
+ - uses : actions/checkout@v3
111
111
- name : Copy files to umd directory
112
112
run : |
113
113
mkdir -p umd
@@ -153,7 +153,7 @@ jobs:
153
153
find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "1 while s/<script type=\"text\/javascript\">\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);?/<script type=\"text\/javascript\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/bundle.js\"><\/script>\n<script type=\"text\/javascript\">/g"
154
154
155
155
# Wrap contents of `<script type="text/javascript">` tag contents in an IIFE:
156
- 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"
156
+ 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"
157
157
158
158
# Create package.json file for umd branch:
159
159
jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "main": "./bundle.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./umd/package.json
@@ -164,7 +164,7 @@ jobs:
164
164
github_token : ${{ secrets.GITHUB_TOKEN }}
165
165
publish_dir : ./umd
166
166
publish_branch : umd
167
- keep_files : true
167
+ force_orphan : true
168
168
user_name : ' stdlib-bot'
169
169
user_email : ' noreply@stdlib.io'
170
170
commit_message : ' Auto-generated commit'
@@ -179,7 +179,7 @@ jobs:
179
179
esm :
180
180
runs-on : ubuntu-latest
181
181
steps :
182
- - uses : actions/checkout@v2
182
+ - uses : actions/checkout@v3
183
183
- name : Copy files to umd directory
184
184
run : |
185
185
mkdir -p esm
@@ -242,7 +242,7 @@ jobs:
242
242
github_token : ${{ secrets.GITHUB_TOKEN }}
243
243
publish_dir : ./esm
244
244
publish_branch : esm
245
- keep_files : true
245
+ force_orphan : true
246
246
user_name : ' stdlib-bot'
247
247
user_email : ' noreply@stdlib.io'
248
248
commit_message : ' Auto-generated commit'
0 commit comments