Skip to content

Commit

Permalink
Merge pull request #97 from lineupjs/release/v4.6.0
Browse files Browse the repository at this point in the history
Release v4.6.0
  • Loading branch information
sgratzl authored Jul 28, 2022
2 parents e3da4a4 + 62d7c05 commit 7ef52f2
Show file tree
Hide file tree
Showing 66 changed files with 14,681 additions and 16,351 deletions.
66 changes: 0 additions & 66 deletions .circleci/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-env node */

module.exports = {
plugins: ['@typescript-eslint', 'prettier'],
extends: ['react-app', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier'],
settings: {
react: {
version: '99.99.99',
},
},
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'import/no-webpack-loader-syntax': 'off',
},
};
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto eol=lf

#
# The above will handle all files NOT found below
Expand Down
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: 🐛 Bug report
about: If something isn't working as expected 🤔.
title: ''
labels: 'bug'
assignees: ''
---

<!--A clear and concise description of what the bug is.-->

When I...

**To Reproduce**

<!--Steps to reproduce the behavior:
-->

1.

**Expected behavior**

<!--A clear and concise description of what you expected to happen.-->

**Screenshots**

<!--If applicable, add screenshots to help explain your problem.-->

**Context**

- Version:
- Browser:

**Additional context**

<!--Add any other context about the problem here.-->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 🤗 Question, Discussions
url: https://github.com/lineupjs/lineupjs/discussions
about: Ask question about the library (usage, features,...)
# - name: Samuel Gratzl
# url: https://www.sgratzl.com
# about: Please ask and answer questions here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: 🚀 Feature Request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''
---

<!--A clear and concise description of what feature you are missing.-->

It would be great if ...

**User story**

<!--Describe your problem, feature you are missing, and how you image to look like.-->

**Additional context**

<!--Add any other context or screenshots about the feature request here.-->
13 changes: 6 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
closes <list issues here>
closes <!--list issues here-->

**prerequisites**:
* [ ] branch is up-to-date with the branch to be merged with, i.e. develop
* [ ] build is successful
* [ ] code is cleaned up and formatted
**prerequisites**:

- [ ] branch is up-to-date with the branch to be merged with, i.e. develop
- [ ] build is successful
- [ ] code is cleaned up and formatted

### Summary

## Summary
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
target-branch: develop
schedule:
interval: 'weekly'
# Maintain dependencies for npm
# - package-ecosystem: 'npm'
# directory: '/'
# target-branch: develop
# schedule:
# interval: 'weekly'
23 changes: 23 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'enhancement'
- 'feature'
- 'style'
- title: '🐛 Bugs Fixes'
labels:
- 'bug'
- title: 'Documentation'
labels:
- 'documentation'
- title: '🧰 Development'
labels:
- 'chore'
change-template: '- #$NUMBER $TITLE'
change-title-escapes: '\<*_&`#@'
template: |
$CHANGES
Thanks to $CONTRIBUTORS
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: ci

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 16
- run: npm i -g yarn
- run: yarn config set checksumBehavior ignore
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: |
./.yarn/cache
./.yarn/unplugged
~/.cache/Cypress
key: ${{ runner.os }}-yarn2-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn2-v4
- run: yarn install
- run: yarn clean
- run: yarn compile
- run: yarn build
- run: yarn lint
- run: |
mkdir -p public/app
cp -rt public/app/ build/*
mkdir -p public_dev/app_develop
cp -rt public_dev/app_develop/ build/*
- name: Deploy Main
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: upsetjs/actions-gh-pages@sgratzl
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
personal_token: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
external_repository: lineupjs/lineup.js.org
publish_branch: main
publish_dir: ./public
enable_jekyll: true
remove_path_spec: 'app'

- name: Deploy Develop
if: github.ref == 'refs/heads/develop' && github.event_name == 'push'
uses: upsetjs/actions-gh-pages@sgratzl
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
personal_token: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
external_repository: lineupjs/lineup.js.org
publish_branch: main
publish_dir: ./public_dev
enable_jekyll: true
remove_path_spec: 'app_develop'
44 changes: 44 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create Release

on:
workflow_dispatch:
inputs:
versionName:
description: 'Semantic Version Number (i.e., 5.5.0 or patch, minor, major, prepatch, preminor, premajor, prerelease)'
required: true
default: patch
preid:
description: 'Pre Release Identifier (i.e., alpha, beta)'
required: true
default: alpha

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: main
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Reset main branch
run: |
git fetch origin develop:develop
git reset --hard develop
- name: Change version number
id: version
run: |
echo -n "::set-output name=next_tag::"
npm version --no-git-tag-version ${{ github.event.inputs.versionName }} --preid ${{ github.event.inputs.preid }}
- name: Create pull request into main
uses: peter-evans/create-pull-request@v4
with:
branch: release/${{ steps.version.outputs.next_tag }}
commit-message: 'chore: release ${{ steps.version.outputs.next_tag }}'
base: main
title: Release ${{ steps.version.outputs.next_tag }}
labels: chore
reviewers: sgratzl
assignees: sgratzl
body: |
Releasing ${{ steps.version.outputs.next_tag }}.
Loading

0 comments on commit 7ef52f2

Please sign in to comment.