Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.2 #297

Merged
merged 4 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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