Skip to content

Commit

Permalink
Merge branch 'main' into feat/reszie-target-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed May 8, 2023
2 parents 464e5d9 + 5afa5f2 commit b8c392d
Show file tree
Hide file tree
Showing 30 changed files with 12,377 additions and 6,188 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/release-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Release Legacy (Beta)

on:
workflow_dispatch:
inputs:
type:
description: 'Release Type'
required: true
default: 'dry-run'
type: choice
options:
- dry-run
- release
- release-beta
- release-next
- release-test
permissions:
teams:
- '@exadel-inc/esl-maintainers-team'
branches:
- main
- main-beta
- main-next
- main-test

permissions: write-all

env:
node-version: 18.x

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

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

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

- name: Install NPM Dependencies
run: npm ci

- name: Git User Config
run: |
git config --global user.name "ala-n"
git config --global user.email "astsefanovich@exadel.com"
- name: Provide NPM Token
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run Release in Dry Run mode
if: ${{ inputs.type == 'dry-run' }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: npx release-it --dry-run -W -V --changelog

- name: Run Release
if: ${{ inputs.type == 'release' }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: npx release-it --ci -V

- name: Run Beta Release
if: ${{ inputs.type == 'release-beta' }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: npx release-it --preRelease=beta --ci -V

- name: Run Next Release
if: ${{ inputs.type == 'release-next' }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: npx release-it --preRelease=next --ci -V

- name: Run Test Release
if: ${{ inputs.type == 'release-test' }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: npx release-it --preRelease=test --ci -V --no-npm
2 changes: 1 addition & 1 deletion .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 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
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

37 changes: 37 additions & 0 deletions .release-it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
git:
tagName: "v${version}"
commitMessage: "chore(release): v${version} \n\n${changelog}"
# requireCleanWorkingDir: false

hooks:
"before:init":
- echo "Release Process started"
- npm run build
- npm run test
- echo "Pre-release check passed"
"before:github:release":
- npm pack
"after:version":
- echo "Changelog ready for v${version}"
"after:release":
- echo "Successfully released ${name} v${version} to ${repo.repository}."

plugins:
"@release-it/conventional-changelog":
infile: CHANGELOG.md
strictSemVer: true
preset: angular

# Out
github:
release: true
comments:
pr: ":rocket: _This pull request is included in v${version}. See [${releaseName}](${releaseUrl}) for release notes._"
issue: ":rocket: _This issue has been resolved in v${version}. See [${releaseName}](${releaseUrl}) for release notes._"
assets:
- ./*.tgz
- CHANGELOG.md
# TODO: Automate github issue labels

npm:
publish: true
45 changes: 0 additions & 45 deletions .releaserc.json

This file was deleted.

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

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

# 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/git"
- assets:
- CHANGELOG.md
- package.json
- package-lock.json
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"

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

- - "@semantic-release/github"
- assets:
- path: target/*.tgz
label: Released NPM Tarball
- path: CHANGELOG.md
label: Changelog
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@


## [4.4.1](https://github.com/exadel-inc/esl/compare/v4.4.0...v4.4.1) (2023-04-25)


### Bug Fixes

* **esl-utils:** incorrect throttle behaviour ([918944d](https://github.com/exadel-inc/esl/commit/918944d0255961651eb3df8f060a9b65fc1ca228))
* **gh-pages:** add new favicon icons ([b2846be](https://github.com/exadel-inc/esl/commit/b2846bea077fe19a8c321349b795837a43cb78e6))
* **gh-pages:** add new favicon icons according to the favicons guide ([83d0ca4](https://github.com/exadel-inc/esl/commit/83d0ca44ac2640fed04023878c696399562b5bac))

## [4.4.1](https://github.com/exadel-inc/esl/compare/v4.4.0...v4.4.1) (2023-04-25)


### Bug Fixes

* **esl-utils:** incorrect throttle behaviour ([918944d](https://github.com/exadel-inc/esl/commit/918944d0255961651eb3df8f060a9b65fc1ca228))
* **gh-pages:** add new favicon icons ([b2846be](https://github.com/exadel-inc/esl/commit/b2846bea077fe19a8c321349b795837a43cb78e6))
* **gh-pages:** add new favicon icons according to the favicons guide ([83d0ca4](https://github.com/exadel-inc/esl/commit/83d0ca44ac2640fed04023878c696399562b5bac))

# [4.4.0](https://github.com/exadel-inc/esl/compare/v4.3.1...v4.4.0) (2023-04-12)


Expand Down
Loading

0 comments on commit b8c392d

Please sign in to comment.