Skip to content

Commit

Permalink
Merge pull request #55 from lineupjs/release/v2.4.1
Browse files Browse the repository at this point in the history
Release v2.4.1
  • Loading branch information
sgratzl authored May 6, 2022
2 parents 25d2668 + d4fbcd0 commit 7f7a197
Show file tree
Hide file tree
Showing 30 changed files with 4,500 additions and 6,018 deletions.
23 changes: 5 additions & 18 deletions .eslintrc.js
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',
},
};
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
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: 16
- run: npm i -g yarn
- run: yarn set version berry
- run: cat .yarnrc_patch.yml >> .yarnrc.yml
- run: yarn config set checksumBehavior ignore
- name: Cache Node.js modules
uses: actions/cache@v2.1.4
uses: actions/cache@v3
with:
path: ./.yarn
key: ${{ runner.os }}-yarn2-${{ hashFiles('**/yarn.lock') }}
path: |
./.yarn/cache
./.yarn/unplugged
key: ${{ runner.os }}-yarn2-v4-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn2-
${{ runner.os }}-yarn2-v4
- run: yarn install
- run: yarn clean
- run: yarn compile
Expand Down
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 }}.
121 changes: 121 additions & 0 deletions .github/workflows/release_main.yml
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
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ node_modules/
*.css
*.log
*.tsbuildinfo
/.yarn
/.pnp.js
/.yarnrc.yml
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/versions
.pnp.*
*.tgz
*.zip
21 changes: 18 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,32 @@
/docs
/coverage
/.gitattributes
/.gitignore
/.prettierignore
.gitignore
.prettierignore
/LICENSE
/.vscode
*.svg
*.map
*.tsbuildinfo
/src/**/*.d.ts
/src/**/*.js
/tests/**/*.d.ts
/tests/**/*.js
/demo/**/*.d.ts
/demo/**/*.js
/.stylelintrc
/.editorconfig
/.yarn
/.pnp.js
/.pnp.*
/.yarnrc.yml
/.vscode
*.lock
*.tgz
*.png
*.txt
*.eot
*.ttf
*.woff
*.woff2
*.mp4
*.csv
17 changes: 0 additions & 17 deletions .release-it.json

This file was deleted.

768 changes: 768 additions & 0 deletions .yarn/releases/yarn-3.1.0.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarnrc.yml
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
4 changes: 0 additions & 4 deletions .yarnrc_patch.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ git clone https://github.com/lineupjs/lineupengine.git
cd lineupengine

npm i -g yarn
yarn set version latest
cat .yarnrc_patch.yml >> .yarnrc.yml
yarn install
yarn pnpify --sdk vscode
yarn sdks vscode
```

### Common commands
Expand Down
2 changes: 1 addition & 1 deletion demo/frozen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable class-methods-use-this */
import { ACellRenderer, ICellRenderContext, PrefetchMixin, uniformContext, nonUniformContext } from '../src';
import { ACellRenderer, ICellRenderContext, uniformContext, nonUniformContext } from '../src';
import Column from './column';

/** @internal */
Expand Down
Loading

0 comments on commit 7f7a197

Please sign in to comment.