Skip to content

Commit

Permalink
Merge branch 'main' into epic/footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dshovchko committed Jun 27, 2023
2 parents 4e6f558 + a5b726d commit ab7f160
Show file tree
Hide file tree
Showing 214 changed files with 19,819 additions and 15,967 deletions.
1 change: 0 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ exclude_patterns:
- "**/spec/"
- "**/test/"
- "**/tests/"
- "**/draft/"
- "**/vendor/"
- "**/*.d.ts"
- "**/*.test.ts"
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ node_modules
# Generated surces
/modules
/polyfills

# TODO: Temporary before esl-carousel release and repository restructuring
/src/modules/draft
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extends:
# TS configuration
parser: '@typescript-eslint/parser'
parserOptions:
project: 'tsconfig.eslint.json'
project: 'tsconfig.json'
sourceType: module

# Lint additional plugins
Expand Down
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ updates:
schedule:
interval: "daily"
reviewers:
- "@exadel-inc/esl-core-team"
- "@exadel-inc/esl-core-maintainers"
assignees:
- "ala-n"
- "abarmina"
6 changes: 3 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: GH Pages

on:
schedule:
# Automatic build runs at 0:00 UTC daily
- cron: '0 0 * * *'
# schedule:
# # Automatic build runs at 0:00 UTC daily
# - cron: '0 0 * * *'
workflow_dispatch:

env:
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/release-pr-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Release PR Beta

on:
push:
branches: [ main-beta ]

permissions:
contents: write
pull-requests: write

env:
node-version: 18.x

jobs:
release-pr:
name: Release Please
runs-on: ubuntu-latest

steps:
- uses: google-github-actions/release-please-action@v3
id: ReleasePR
with:
default-branch: main-beta
package-name: '@exadel/esl'
versioning-strategy: default
release-type: node
command: release-pr
prerelease: true
changelog-types: '[
{"type":"feat", "section":"Features", "hidden":false},
{"type":"fix", "section":"Bug Fixes", "hidden":false},
{"type":"refactor", "section":"Refactoring", "hidden":false}
]'
pull-request-title-pattern: 'chore${scope}: release ${component} v${version}'
labels: 'release: processed'
release-labels: 'released'

# The logic below handles the npm publication:
- if: ${{ steps.ReleasePR.outputs.release_created }}
uses: actions/checkout@v3
with:
persist-credentials: false

- if: ${{ steps.ReleasePR.outputs.release_created }}
name: Use Node v${{ env.node-version }}
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ env.node-version }}

- if: ${{ steps.ReleasePR.outputs.release_created }}
name: Install NPM Dependencies
run: npm ci

- if: ${{ steps.ReleasePR.outputs.release_created }}
run: npm pack

- if: ${{ steps.ReleasePR.outputs.release_created }}
name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ steps.ReleasePR.outputs.tag_name }} ./exadel-esl-${{steps.ReleasePR.outputs.major}}.${{steps.ReleasePR.outputs.minor}}.${{steps.ReleasePR.outputs.patch}}.tgz

# - if: ${{ steps.ReleasePR.outputs.release_created }}
# name: Provide NPM Token
# run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
#
# - if: ${{ steps.ReleasePR.outputs.release_created }}
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}AAl@n

74 changes: 74 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Release PR

on:
push:
branches: [ main ]

permissions:
contents: write
pull-requests: write

env:
node-version: 18.x

jobs:
release-pr:
name: Release Please
runs-on: ubuntu-latest

steps:
- uses: google-github-actions/release-please-action@v3
id: ReleasePR
with:
default-branch: main
package-name: '@exadel/esl'
versioning-strategy: default
release-type: node
command: release-pr
changelog-types: '[
{"type":"feat", "section":"Features", "hidden":false},
{"type":"fix", "section":"Bug Fixes", "hidden":false},
{"type":"refactor", "section":"Refactoring", "hidden":false}
]'
pull-request-title-pattern: 'chore${scope}: release ${component} v${version}'
labels: 'release: processed'
release-labels: 'released'

# The logic below handles the npm publication:
- if: ${{ steps.ReleasePR.outputs.release_created }}
uses: actions/checkout@v3
with:
persist-credentials: false

- if: ${{ steps.ReleasePR.outputs.release_created }}
name: Use Node v${{ env.node-version }}
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ env.node-version }}

- if: ${{ steps.ReleasePR.outputs.release_created }}
name: Install NPM Dependencies
run: npm ci

- if: ${{ steps.ReleasePR.outputs.release_created }}
run: npm pack

- if: ${{ steps.ReleasePR.outputs.release_created }}
name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ steps.ReleasePR.outputs.tag_name }} ./exadel-esl-${{steps.ReleasePR.outputs.major}}.${{steps.ReleasePR.outputs.minor}}.${{steps.ReleasePR.outputs.patch}}.tgz

# - if: ${{ steps.ReleasePR.outputs.release_created }}
# name: Provide NPM Token
# run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
#
# - if: ${{ steps.ReleasePR.outputs.release_created }}
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}AAl@n

4 changes: 1 addition & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Validate
on:
push:
branches: [ main, main-beta, epic/* ]
pull_request_target:
pull_request:
branches: [ main, main-beta, epic/* ]
workflow_dispatch:

Expand All @@ -28,8 +28,6 @@ jobs:
run: npm run lint:js
- name: Run Linting CSS
run: npm run lint:css
- name: Run Linting Format
run: npm run lint:spaces

test:
name: Unit Tests & Coverage
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
node_modules

# Build output
*.tgz
target
pages/dist

# Generated surces
/modules
/polyfills

# NPM
.npmrc

# Logs & Tmp
npm-debug.log
.gitconfig
Expand Down
5 changes: 0 additions & 5 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
- "jest --silent --noStackTrace --bail --passWithNoTests --findRelatedTests"
"*.less":
- "stylelint"
- "lintspaces -n -t -d spaces"
"*.html":
- "lintspaces -n -t -d spaces"
"*.njk":
- "lintspaces -n -t -d spaces"
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

45 changes: 0 additions & 45 deletions .releaserc.json

This file was deleted.

72 changes: 72 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Stack trace is required
debug: true

# Tag format config
tagFormat: "v${version}"

# Repository
repositoryUrl: "https://github.com/exadel-inc/esl"

# Branch release rules
branches:
- main
- name: main-beta
channel: beta
prerelease: beta
- name: main-next
channel: next
prerelease: next

# Release configuration
plugins:
- - "@semantic-release/commit-analyzer"
- preset: angular
releaseRules:
- type: style
release: patch
- type: refactor
release: patch
- type: fix
message: "*MINOR VERSION*"
release: minor
- type: style
message: "*MINOR VERSION*"
release: minor
- type: refactor
message: "*MINOR VERSION*"
release: minor
- type: chore
scope: deps
release: patch
- type: chore
scope: patch
release: patch

- - "@semantic-release/release-notes-generator"
- preset: angular
parserOpts:
noteKeywords:
- BREAKING CHANGE
- BREAKING CHANGES
- BREAKING-CHANGE
- BREAKING

- - "@semantic-release/changelog"
- changelogFile: CHANGELOG.md

- - "@semantic-release/npm"
- tarballDir: target

- - "@semantic-release/git"
- assets:
- CHANGELOG.md
- package.json
- package-lock.json
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"

- - "@semantic-release/github"
- assets:
- path: target/*.tgz
label: Released NPM Tarball
- path: CHANGELOG.md
label: Changelog
4 changes: 0 additions & 4 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ rules:
keyframe-declaration-no-important: true
# Disallow duplicated at-rules
no-duplicate-at-import-rules: true
# Warn about duplicate selectors within a stylesheet
no-duplicate-selectors:
- true
- severity: warning
# Warn if empty sources
no-empty-source:
- true
Expand Down
Loading

0 comments on commit ab7f160

Please sign in to comment.