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/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e2c6b26 --- /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 }} 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/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",