-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dependencies updated, eslint config converted to yaml * fixes issue remote links return type (#296) * CHANGELOG updated --------- Co-authored-by: Fernando Maia <[email protected]>
- Loading branch information
1 parent
47db5aa
commit fe606a9
Showing
8 changed files
with
1,280 additions
and
777 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,82 @@ | ||
parser: "@typescript-eslint/parser" | ||
extends: | ||
- "airbnb-typescript/base" | ||
parserOptions: | ||
ecmaVersion: 2018 | ||
sourceType: "module" | ||
project: "./tsconfig.lint.json" | ||
plugins: | ||
- "import" | ||
env: | ||
node: true | ||
browser: true | ||
rules: | ||
"@typescript-eslint/lines-between-class-members": "off" | ||
"arrow-parens": | ||
- "error" | ||
- "as-needed" | ||
"class-methods-use-this": "off" | ||
"eol-last": "error" | ||
"import/no-cycle": "off" | ||
"import/prefer-default-export": "off" | ||
"linebreak-style": | ||
- "error" | ||
- "unix" | ||
"lines-between-class-members": "off" | ||
"max-len": "off" | ||
"no-trailing-spaces": "error" | ||
"no-underscore-dangle": "off" | ||
"padding-line-between-statements": | ||
- "error" | ||
- blankLine: "always" | ||
prev: "*" | ||
next: | ||
- "block" | ||
- "block-like" | ||
- "cjs-export" | ||
- "class" | ||
- "const" | ||
- "export" | ||
- "import" | ||
- "let" | ||
- "var" | ||
- blankLine: "always" | ||
prev: | ||
- "block" | ||
- "block-like" | ||
- "cjs-export" | ||
- "class" | ||
- "const" | ||
- "export" | ||
- "import" | ||
- "let" | ||
- "var" | ||
next: "*" | ||
- blankLine: "any" | ||
prev: | ||
- "const" | ||
- "let" | ||
- "var" | ||
next: | ||
- "const" | ||
- "let" | ||
- "var" | ||
- blankLine: "never" | ||
prev: | ||
- "import" | ||
next: | ||
- "import" | ||
- blankLine: "always" | ||
prev: | ||
- "import" | ||
next: | ||
- "export" | ||
- blankLine: "any" | ||
prev: | ||
- "export" | ||
next: | ||
- "export" | ||
settings: | ||
import/parsers: | ||
"@typescript-eslint/parser": | ||
- ".ts" |
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 |
---|---|---|
|
@@ -105,3 +105,65 @@ jobs: | |
git add . | ||
git commit -m "Update documentation for version v${{ env.VERSION }}" | ||
git push | ||
creating-git-tag: | ||
name: Create Git Tag | ||
needs: | ||
- publish | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Extract version from package.json | ||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | ||
|
||
- name: Create and Push Git Tag | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
TAG="v${{ env.version }}" | ||
git tag $TAG | ||
git push origin $TAG | ||
creating-github-release: | ||
name: Create GitHub Release | ||
needs: | ||
- creating-git-tag | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Extract version from package.json | ||
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | ||
|
||
- name: Extract Changelog Entry | ||
id: changelog | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ./CHANGELOG.md | ||
|
||
- name: Parse Changelog Entry | ||
run: | | ||
CHANGELOG_CONTENT=$(echo '${{ steps.changelog.outputs.content }}' | awk '/### ${{ steps.pkg.outputs.version }}/,/### /{print; if (/### / && !/### ${{ steps.pkg.outputs.version }}/){exit}}') | ||
echo "CHANGELOG=$CHANGELOG_CONTENT" >> $GITHUB_ENV | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: v${{ env.version }} | ||
name: Release v${{ env.version }} | ||
body: ${{ env.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.