Skip to content

Commit

Permalink
v3.0.2 (#297)
Browse files Browse the repository at this point in the history
* 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
MrRefactoring and fsmaia authored Jan 3, 2024
1 parent 47db5aa commit fe606a9
Show file tree
Hide file tree
Showing 8 changed files with 1,280 additions and 777 deletions.
126 changes: 0 additions & 126 deletions .eslintrc

This file was deleted.

82 changes: 82 additions & 0 deletions .eslintrc.yml
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"
62 changes: 62 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Jira.js changelog

### 3.0.2

- Return type fixed for `issue remote links` endpoint. Thanks to [Fernando Maia](https://github.com/fsmaia) for reporting and [fixing](https://github.com/MrRefactoring/jira.js/pull/296) [the issue](https://github.com/MrRefactoring/jira.js/issues/295).
- Dependencies upgraded
- CI/CD improvements

### 3.0.1

- Dependencies upgraded
Expand Down
Loading

0 comments on commit fe606a9

Please sign in to comment.