From ceaa3a52cf3f4a447a09e61b9ba826f5734cec24 Mon Sep 17 00:00:00 2001 From: Sakib Hasan Date: Thu, 5 Sep 2024 19:50:50 +0600 Subject: [PATCH 1/2] added github actions --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ package.json | 3 ++- packages/node/CHANGELOG.md | 6 ++++++ packages/node/package.json | 2 +- 4 files changed, 42 insertions(+), 2 deletions(-) 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..f3bca9a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +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.x + uses: actions/setup-node@v3 + with: + node-version: 20.x + + - name: Install Dependencies + run: pnpm install + + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 + with: + publish: pnpm release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index ec8e8e7..2e72866 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "build": "turbo build", "dev": "turbo dev", "lint": "turbo lint", - "format": "prettier --write \"**/*.{ts,tsx,md}\"" + "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "release": "turbo build && changeset publish" }, "devDependencies": { "@changesets/cli": "^2.27.8", diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 95c1578..fbcefa8 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -1,5 +1,11 @@ # @unify-payment/node +## 0.0.10 + +### Patch Changes + +- Added github actions + ## 0.0.9 ### Patch Changes diff --git a/packages/node/package.json b/packages/node/package.json index 910b291..1810b18 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,6 +1,6 @@ { "name": "@unify-payment/node", - "version": "0.0.9", + "version": "0.0.10", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "dist/index.mjs", From 8584249ee4203e15faabeea885b19efd45605387 Mon Sep 17 00:00:00 2001 From: Sakib Hasan Date: Thu, 5 Sep 2024 19:56:53 +0600 Subject: [PATCH 2/2] updated --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3bca9a..7bb5951 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,5 +29,4 @@ jobs: with: publish: pnpm release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}