Skip to content

Commit

Permalink
Merge pull request #45 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 7d65fdb + 8cf7b0c commit d376ff8
Show file tree
Hide file tree
Showing 52 changed files with 12,677 additions and 12,841 deletions.
57 changes: 0 additions & 57 deletions .circleci/config.yml

This file was deleted.

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

module.exports = {
plugins: ['prettier'],
extends: ['react-app', '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',
},
};
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'
27 changes: 27 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
categories:
- title: '🚀 Features'
labels:
- 'enhancement'
- 'feature'
- 'style'
- 'type: feature'
- title: '🐛 Bugs Fixes'
labels:
- 'bug'
- 'type: bug'
- title: '📖 Documentation'
labels:
- 'documentation'
- 'type: docs'
- title: '🧰 Maintenance'
labels:
- 'chore'
- 'type: refactor'
- 'type: technical dept'
- 'dependencies'
change-template: '- #$NUMBER $TITLE'
change-title-escapes: '\<*_&`#@'
template: |
$CHANGES
Thanks to $CONTRIBUTORS
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
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
key: ${{ runner.os }}-yarn2-v2-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn2-v2
- run: yarn install
- run: yarn clean
- run: yarn compile
- run: yarn build
- run: yarn lint
- run: yarn docs
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 }}.
94 changes: 94 additions & 0 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Release Main

on:
push:
branches:
- main

jobs:
correct_repository:
runs-on: ubuntu-latest
steps:
- name: fail on fork
if: github.repository_owner != 'lineupjs'
run: exit 1

create_release:
needs: correct_repository
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Extract version
id: extract_version
run: |
node -pe "'::set-output name=version::' + require('./package.json').version"
node -pe "'::set-output name=npm_tag::' + (require('./package.json').version.includes('-') ? 'next' : 'latest')"
- name: Print version
run: |
echo "releasing ${{ steps.extract_version.outputs.version }} with tag ${{ steps.extract_version.outputs.npm_tag }}"
- name: Create Release
id: create_release
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
with:
name: v${{ steps.extract_version.outputs.version }}
tag: v${{ steps.extract_version.outputs.version }}
version: ${{ steps.extract_version.outputs.version }}
prerelease: ${{ needs.create_release.outputs.tag_name == 'next' }}
publish: true
outputs:
version: ${{ steps.extract_version.outputs.version }}
npm_tag: ${{ steps.extract_version.outputs.npm_tag }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
tag_name: ${{ steps.create_release.outputs.tag_name }}

npm_publish:
needs: create_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
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
key: ${{ runner.os }}-yarn2-v2-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn2-v2
- run: yarn install
- run: yarn clean
- run: yarn compile
- run: yarn build
- run: yarn lint
- run: yarn docs
- name: Pack Publish
run: |
yarn config set npmAuthToken "${{ secrets.NPM_TOKEN }}"
yarn pack
yarn npm publish --tag "${{ needs.create_release.outputs.npm_tag }}"
sync_dev:
needs: correct_repository
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: develop
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Reset dev branch
run: |
git fetch origin main:main
git merge main
git push
Loading

0 comments on commit d376ff8

Please sign in to comment.