Skip to content

Commit

Permalink
build: Merge pull request #1184 from keindev/dev
Browse files Browse the repository at this point in the history
build: release v5.0.1
  • Loading branch information
Daniil Ryazanov committed Feb 14, 2024
2 parents a1a9337 + 7291b32 commit b627671
Show file tree
Hide file tree
Showing 10 changed files with 2,119 additions and 2,191 deletions.
2 changes: 1 addition & 1 deletion .ghinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gh-gql",
"version": "5.0.0",
"version": "5.0.1",
"description": "GitHub GraphQL API helper for TypeScript",
"keywords": [
"api",
Expand Down
34 changes: 20 additions & 14 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
release:
- base-branch: 'main'

test:
- src/__mocks__/**/*.test.ts
- src/__tests__/**/*.test.ts
- changed-files:
- any-glob-to-any-file: ['src/__mocks__/**/*.test.ts', 'src/__tests__/**/*.test.ts']

workflow:
- .github/**/*
- .gitignore
- .npmignore
- changed-files:
- any-glob-to-any-file: ['.github/**/*', '.gitignore', '.npmignore']

project:
- package-lock.json
- package.json
- LICENSE
- changed-files:
- any-glob-to-any-file: ['package-lock.json', 'package.json', 'LICENSE']

source:
- any: ['src/**/*', '!src/cli/*', '!src/__mocks__/*', '!src/__tests__/*']
- changed-files:
- any-glob-to-any-file: ['src/**/*', '!src/cli/*', '!src/__mocks__/*', '!src/__tests__/*']

api:
- bin/**/*
- src/cli/**/*
- changed-files:
- any-glob-to-any-file: ['bin/**/*', 'src/cli/**/*']

docs:
- any: ['docs/**/*', '*.md', '.ghinfo']
- changed-files:
- any-glob-to-any-file: ['docs/**/*', '*.md', '.ghinfo']

example:
- example/**/*
- changed-files:
- any-glob-to-any-file: ['example/**/*']
-

media:
- media/**/*
- changed-files:
- any-glob-to-any-file: ['media/**/*']
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
name: Test
runs-on: ubuntu-latest
env:
NODE_VERSION: 16
NODE_VERSION: latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js v${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -35,7 +35,7 @@ jobs:
npm run test
- name: Cache coverage
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: coverage
key: coverage-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('src/**/*.*', '**/package-lock.json') }}
Expand All @@ -45,13 +45,13 @@ jobs:
needs: [ test ]
runs-on: ubuntu-latest
env:
NODE_VERSION: 16
NODE_VERSION: latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -69,21 +69,21 @@ jobs:
needs: [ build ]
runs-on: ubuntu-latest
env:
NODE_VERSION: 16
NODE_VERSION: latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache coverage
id: cache-coverage
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: coverage
key: coverage-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('src/**/*.*', '**/package-lock.json') }}

- name: Setup Node.js v${{ env.NODE_VERSION }}
if: steps.cache-coverage.outputs.cache-hit != 'true'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -96,7 +96,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Send coverage report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./coverage/lcov.info

Expand Down
38 changes: 22 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Sync project labels
uses: micnncim/action-label-syncer@v1
Expand All @@ -19,17 +19,20 @@ jobs:

publish:
name: Publish
needs: [ sync ]
runs-on: ubuntu-latest
env:
NODE_VERSION: 16

permissions:
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js v${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version: latest

- name: Install Dependencies
run: npm ci
Expand All @@ -45,26 +48,29 @@ jobs:
run: npm run build

- name: Publish package
uses: JS-DevTools/npm-publish@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
provenance: true

release:
name: Create Release
needs: [ publish ]
runs-on: ubuntu-latest
env:
NODE_VERSION: 16

permissions:
contents: write
id-token: write

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version: latest

- name: Get package version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ jobs:
labels:
name: Pull Request Labeler
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/labeler.yml'
Expand Down
41 changes: 6 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,28 @@
# Important Changes

## Engines

- Changed **node** from `^14.13.1 || >=16.0.0` to `>=16.0.0`

## Dependencies

<details>
<summary>Dependencies</summary>

- Changed **[graphql](https://www.npmjs.com/package/graphql)** from `^16.6.0` to `^16.8.0`
- Bumped **[graphql-request](https://www.npmjs.com/package/graphql-request)** from `^5.0.0` to `^6.1.0`
- Changed **[graphql](https://www.npmjs.com/package/graphql)** from `^16.8.0` to `^16.8.1`
- Changed **[universal-user-agent](https://www.npmjs.com/package/universal-user-agent)** from `^7.0.1` to `^7.0.2`

</details>

<details>
<summary>Dev Dependencies</summary>

- Bumped **[@tagproject/ts-package-shared-config](https://www.npmjs.com/package/@tagproject/ts-package-shared-config)** from `^10.0.2` to `^11.0.1`
- Removed **[@tagproject/docs-shared-config](https://www.npmjs.com/package/@tagproject/docs-shared-config)**, with `^1.1.2`
- Removed **[@tagproject/vscode-shared-config](https://www.npmjs.com/package/@tagproject/vscode-shared-config)**, with `^2.0.5`
- Removed **[@types/jest](https://www.npmjs.com/package/@types/jest)**, with `^29.2.3`
- Removed **[@types/node](https://www.npmjs.com/package/@types/node)**, with `^18.11.9`
- Removed **[@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)**, with `^5.44.0`
- Removed **[@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser)**, with `^5.44.0`
- Removed **[changelog-guru](https://www.npmjs.com/package/changelog-guru)**, with `^4.0.8`
- Removed **[cspell](https://www.npmjs.com/package/cspell)**, with `^6.14.3`
- Removed **[dotenv-cli](https://www.npmjs.com/package/dotenv-cli)**, with `^6.0.0`
- Removed **[eslint](https://www.npmjs.com/package/eslint)**, with `^8.28.0`
- Removed **[eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier)**, with `^8.5.0`
- Removed **[eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)**, with `^2.26.0`
- Removed **[eslint-plugin-jest](https://www.npmjs.com/package/eslint-plugin-jest)**, with `^27.1.5`
- Removed **[eslint-plugin-node](https://www.npmjs.com/package/eslint-plugin-node)**, with `^11.1.0`
- Removed **[eslint-plugin-optimize-regex](https://www.npmjs.com/package/eslint-plugin-optimize-regex)**, with `^1.2.1`
- Removed **[eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise)**, with `^6.1.1`
- Removed **[figma-portal](https://www.npmjs.com/package/figma-portal)**, with `^1.0.2`
- Removed **[ghinfo](https://www.npmjs.com/package/ghinfo)**, with `^3.0.7`
- Removed **[husky](https://www.npmjs.com/package/husky)**, with `^8.0.2`
- Removed **[jest](https://www.npmjs.com/package/jest)**, with `^29.3.1`
- Removed **[npm-run-all](https://www.npmjs.com/package/npm-run-all)**, with `^4.1.5`
- Removed **[prettier](https://www.npmjs.com/package/prettier)**, with `^2.7.1`
- Removed **[rimraf](https://www.npmjs.com/package/rimraf)**, with `^3.0.2`
- Removed **[ts-jest](https://www.npmjs.com/package/ts-jest)**, with `^29.0.3`
- Removed **[typescript](https://www.npmjs.com/package/typescript)**, with `^4.9.3`
- Changed **[@tagproject/ts-package-shared-config](https://www.npmjs.com/package/@tagproject/ts-package-shared-config)** from `^11.0.1` to `^11.0.4`

</details>

# :bug: Bug Fixes
# :memo: Internal changes

- Fix types & imports [`d0a0f87`](https://github.com/keindev/gh-gql/commit/d0a0f87bd4db7cfa883e5902c739d582058e7e9f)
- Fix lint warnings [`7403eeb`](https://github.com/keindev/gh-gql/commit/7403eeb8601bdb48aeca703285a9285fa0a3a2b0)

---

# Contributors

[![@github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4&s=40)](https://github.com/github-actions%5Bbot%5D) [![@keindev](https://avatars.githubusercontent.com/u/4527292?v=4&s=40)](https://github.com/keindev)
[![@keindev](https://avatars.githubusercontent.com/u/4527292?v=4&s=40)](https://github.com/keindev)

0 comments on commit b627671

Please sign in to comment.