From a6bb6300ed31e656aa3e88f1f45c764eaabaeaec Mon Sep 17 00:00:00 2001 From: valentinesamuel Date: Wed, 30 Oct 2024 12:09:37 +0100 Subject: [PATCH 1/4] RELEASING: Releasing 1 package(s) Releases: hashnode-node-sdk@1.0.1 [skip ci] --- .changeset/swift-bulldogs-smell.md | 5 ----- CHANGELOG.md | 7 +++++++ package.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 .changeset/swift-bulldogs-smell.md create mode 100644 CHANGELOG.md diff --git a/.changeset/swift-bulldogs-smell.md b/.changeset/swift-bulldogs-smell.md deleted file mode 100644 index 6262959..0000000 --- a/.changeset/swift-bulldogs-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'hashnode-node-sdk': patch ---- - -initial release diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..24ee4eb --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# hashnode-node-sdk + +## 1.0.1 + +### Patch Changes + +- cabfae9: initial release diff --git a/package.json b/package.json index 626a1b1..9c4b3b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hashnode-node-sdk", - "version": "1.0.0", + "version": "1.0.1", "description": "A javascript sdk for working with hasnode graphql api", "keywords": [ "hashnode", From b78ef49957ed17a8d7388754aec619dbda35014e Mon Sep 17 00:00:00 2001 From: valentinesamuel Date: Wed, 30 Oct 2024 12:16:50 +0100 Subject: [PATCH 2/4] added changeset release action --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..697629d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install Dependencies + run: yarn + + - name: Create Release Pull Request + uses: changesets/action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 8bef949fb32cde2c46c697290db1059a325b6e41 Mon Sep 17 00:00:00 2001 From: valentinesamuel Date: Wed, 30 Oct 2024 12:31:56 +0100 Subject: [PATCH 3/4] fix: fixed format --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c4b3b8..a7a1357 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "check-format": "prettier --check .", "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm", "lint": "tsc", - "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test", + "ci": "npm run build && npm run check-format && npm run format && npm run check-exports && npm run lint && npm run test", "test": "vitest run", "dev": "vitest", "local-release": "changeset version && changeset publish", From 2fe20a1d1c6ad0c5b7684cc8b6d2fbf36f9d0772 Mon Sep 17 00:00:00 2001 From: valentinesamuel Date: Wed, 30 Oct 2024 12:32:56 +0100 Subject: [PATCH 4/4] fix: fixed format --- .github/workflows/release.yml | 2 +- .husky/pre-commit | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 697629d..e2c6b26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,4 +26,4 @@ jobs: - name: Create Release Pull Request uses: changesets/action@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.husky/pre-commit b/.husky/pre-commit index 8cb7743..784d53f 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ # Run npm ci and fail if it does not complete successfully -npm ci || exit 1 \ No newline at end of file +npm run format && npm ci || exit 1 \ No newline at end of file diff --git a/package.json b/package.json index a7a1357..9c4b3b8 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "check-format": "prettier --check .", "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm", "lint": "tsc", - "ci": "npm run build && npm run check-format && npm run format && npm run check-exports && npm run lint && npm run test", + "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test", "test": "vitest run", "dev": "vitest", "local-release": "changeset version && changeset publish",