diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7bb5951 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +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: + 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",