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 May 5, 2021
0 parents commit 5690292
Show file tree
Hide file tree
Showing 2,971 changed files with 219,052 additions and 0 deletions.
154 changes: 154 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
#/
# @license Apache-2.0
#
# Copyright (c) 2017 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/

# EditorConfig configuration file (see <http://editorconfig.org/>).

# Indicate that this file is a root-level configuration file:
root = true

# Set properties for all files:
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Set properties for JavaScript files:
[*.js]
indent_style = tab

# Set properties for TypeScript files:
[*.ts]
indent_style = tab

# Set properties for Python files:
[*.py]
indent_style = space
indent_size = 4

# Set properties for Julia files:
[*.jl]
indent_style = tab

# Set properties for R files:
[*.R]
indent_style = tab

# Set properties for C files:
[*.c]
indent_style = tab

# Set properties for C header files:
[*.h]
indent_style = tab

# Set properties for C++ files:
[*.cpp]
indent_style = tab

# Set properties for C++ header files:
[*.hpp]
indent_style = tab

# Set properties for Fortran files:
[*.f]
indent_style = space
indent_size = 2
insert_final_newline = false

# Set properties for shell files:
[*.sh]
indent_style = tab

# Set properties for AWK files:
[*.awk]
indent_style = tab

# Set properties for HTML files:
[*.html]
indent_style = tab
tab_width = 2

# Set properties for CSS files:
[*.css]
indent_style = tab

# Set properties for Makefiles:
[Makefile]
indent_style = tab

[*.mk]
indent_style = tab

# Set properties for Markdown files:
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

# Set properties for `usage.txt` files:
[usage.txt]
indent_style = space
indent_size = 2

# Set properties for `repl.txt` files:
[repl.txt]
indent_style = space
indent_size = 4

# Set properties for `package.json` files:
[package.json]
indent_style = space
indent_size = 2

# Set properties for `datapackage.json` files:
[datapackage.json]
indent_style = space
indent_size = 2

# Set properties for `tslint.json` files:
[tslint.json]
indent_style = space
indent_size = 2

# Set properties for `tsconfig.json` files:
[tsconfig.json]
indent_style = space
indent_size = 2

# Set properties for LaTeX files:
[*.tex]
indent_style = tab

# Set properties for LaTeX Bibliography files:
[*.bib]
indent_style = tab

# Set properties for YAML files:
[*.yml]
indent_style = space
indent_size = 2

# Set properties for GYP files:
[binding.gyp]
indent_style = space
indent_size = 2

[*.gypi]
indent_style = space
indent_size = 2
32 changes: 32 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Install dependencies

on:
workflow_run:
workflows: ["Publish Package"]
types: [completed]

jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Install dependencies via npm
run: |
npm install
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Delete tag of unpublished version
run: |
git config --local user.email "[email protected]"
git config --local user.name "stdlib-bot"
git push origin --delete $(git tag -l | tail --lines=1)
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Package

on: push

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Increment version
run: |
git config --local user.email "[email protected]"
git config --local user.name "stdlib-bot"
npm version patch
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true
- name: Publish package to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 5690292

Please sign in to comment.