-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/reszie-target-extension
- Loading branch information
Showing
30 changed files
with
12,377 additions
and
6,188 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 |
---|---|---|
@@ -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 |
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 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,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 |
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
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 |
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.