Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Apr 1, 2022
1 parent af022d6 commit 55db274
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 27 deletions.
1 change: 1 addition & 0 deletions .github/.keepalive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2022-04-01T02:11:36.328Z
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ on:
push:
branches:
- main
tags_ignore:
tags-ignore:
- 'v[0-9]+\.[0-9]+\.[0-9]+'

# Workflow jobs:
jobs:
deno:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Copy files to deno directory
run: |
mkdir -p deno
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./deno
publish_branch: deno
keep_files: true
force_orphan: true
user_name: 'stdlib-bot'
user_email: '[email protected]'
commit_message: 'Auto-generated commit'
Expand All @@ -107,7 +107,7 @@ jobs:
umd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Copy files to umd directory
run: |
mkdir -p umd
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
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"
# Wrap contents of `<script type="text/javascript">` tag contents in an IIFE:
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"
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"
# Create package.json file for umd branch:
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
Expand All @@ -164,7 +164,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./umd
publish_branch: umd
keep_files: true
force_orphan: true
user_name: 'stdlib-bot'
user_email: '[email protected]'
commit_message: 'Auto-generated commit'
Expand All @@ -179,7 +179,7 @@ jobs:
esm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Copy files to umd directory
run: |
mkdir -p esm
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./esm
publish_branch: esm
keep_files: true
force_orphan: true
user_name: 'stdlib-bot'
user_email: '[email protected]'
commit_message: 'Auto-generated commit'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#/

# Workflow name:
name: Cancel Workflow Runs
name: cancel

# Workflow triggers:
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#/

# Workflow name:
name: Publish Package
name: publish

# Workflow triggers:
on:
Expand All @@ -31,7 +31,7 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: main
- name: Increment version in `package.json` to the version number of the tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#/

# Workflow name:
name: build
name: test

# Workflow triggers:
on:
Expand All @@ -34,7 +34,7 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#/

# Workflow name:
name: Test Loading Bundles
name: test_bundles

# Workflow triggers:
on:
workflow_run:
workflows: ["bundle"]
workflows: ["test"]
types: [completed]
workflow_dispatch:

Expand All @@ -34,7 +34,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- name: Checkout branch with UMD build
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: umd
- name: Setup Node.js
Expand All @@ -57,7 +57,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- name: Checkout branch with ESM build
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: esm
- name: Setup Node.js
Expand All @@ -80,7 +80,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- name: Checkout branch with Deno build
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: deno
- name: Install Deno
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#/

# Workflow name:
name: coverage
name: test_coverage

# Workflow triggers:
on:
workflow_run:
workflows: ["build"]
workflows: ["test"]
types: [completed]
workflow_dispatch:

Expand All @@ -31,7 +31,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
#/

# Workflow name:
name: Test Installing Dependencies
name: test_install

# Workflow triggers:
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 1 * * 6'
workflow_run:
workflows: ["Publish Package"]
workflows: ["publish"]
types: [completed]
workflow_dispatch:

Expand All @@ -37,7 +37,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down

0 comments on commit 55db274

Please sign in to comment.