-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from lineupjs/release/v2.4.1
Release v2.4.1
- Loading branch information
Showing
30 changed files
with
4,500 additions
and
6,018 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,16 @@ | ||
/* eslint-env node */ | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const pkg = require('./package.json'); | ||
|
||
module.exports = { | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: [ | ||
'airbnb-typescript', | ||
'react-app', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended', | ||
'prettier', | ||
], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
}, | ||
extends: ['react-app', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier'], | ||
settings: { | ||
react: { | ||
version: pkg.devDependencies.react ? 'detect' : '99.99.99', | ||
version: '99.99.99', | ||
}, | ||
}, | ||
rules: { | ||
'no-continue': 'off', | ||
// '@typescript-eslint/explicit-module-boundary-types': 'off', | ||
// '@typescript-eslint/no-explicit-any': 'off', | ||
// '@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
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-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: yarn test:coverage | ||
- run: yarn docs | ||
- run: | | ||
mkdir -p public/main/docs | ||
cp -r build/* public/main | ||
cp -r docs/* public/main/docs | ||
mv README.md public/ | ||
mkdir -p public_dev/develop/docs | ||
cp -r build/* public_dev/develop | ||
cp -r docs/* public_dev/develop/docs | ||
- name: Deploy Main | ||
uses: upsetjs/actions-gh-pages@sgratzl | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
with: | ||
personal_token: ${{ secrets.PRIVATE_GITHUB_TOKEN }} | ||
external_repository: lineupjs/lineupengine.js.org | ||
publish_branch: main | ||
publish_dir: ./public | ||
enable_jekyll: true | ||
remove_path_spec: 'README.md,main' | ||
- name: Pack Publish | ||
run: | | ||
yarn config set npmAuthToken "${{ secrets.NPM_TOKEN }}" | ||
yarn pack | ||
yarn npm publish --tag "${{ needs.create_release.outputs.npm_tag }}" | ||
- name: Upload Release Asset | ||
uses: AButler/[email protected] | ||
with: | ||
files: '*.tgz' | ||
repo-token: ${{ secrets.PRIVATE_GITHUB_TOKEN }} | ||
release-tag: ${{ needs.create_release.outputs.tag_name }} | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
packageExtensions: | ||
eslint-config-airbnb-typescript@*: | ||
dependencies: | ||
eslint-config-airbnb-base: "*" | ||
eslint-module-utils@*: | ||
dependencies: | ||
eslint-import-resolver-node: "*" | ||
|
||
yarnPath: .yarn/releases/yarn-3.1.0.cjs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.