From 3be7336fe7df3887bf16a8d82b669e1ea0f50a26 Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 30 Oct 2023 15:01:05 +0100 Subject: [PATCH 1/2] fee --- .github/workflows/release.yml | 29 +++++++++++++++++------------ package.json | 3 ++- packages/sdk/index.ts | 2 +- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca65d9327..6c0dc9b55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,4 @@ -name: Release - -permissions: - contents: write - pull-requests: write +name: release on: push: @@ -11,16 +7,22 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: {} + jobs: release: - name: Release + permissions: + contents: write # to create release (changesets/action) + issues: write # to post issue comments (changesets/action) + pull-requests: write # to create pull request (changesets/action) + + timeout-minutes: 20 + runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Setup Node.js 16.x - uses: actions/setup-node@v3 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16.x @@ -31,10 +33,13 @@ jobs: run: pnpm --recursive install --no-frozen-lockfile - name: Create Release Pull Request or Publish to npm - id: changesets uses: changesets/action@v1 with: publish: pnpm run release + version: pnpm run version + commit: "chore: new release" + title: "chore: new release candidate" + env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index c5d456b30..b5e8b003f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "echo \"Error: no test specified\"", "prepare": "husky install", - "release": "pnpm --recursive run lint && pnpm --recursive run build && pnpm --recursive run test" + "version": "changeset version", + "release": "pnpm --recursive run lint && pnpm --recursive run build && pnpm --recursive run test && changeset publish" }, "keywords": [], "author": "", diff --git a/packages/sdk/index.ts b/packages/sdk/index.ts index 0bafe772f..543cb0c3f 100644 --- a/packages/sdk/index.ts +++ b/packages/sdk/index.ts @@ -19,7 +19,7 @@ type ContactBody = { export default class PanoraApiClient { - static readonly API_URL = "test-api"; + static readonly API_URL = "test-app"; constructor(){} From b7ee928fdbd8680ec4895ea20c40a09db2c2508b Mon Sep 17 00:00:00 2001 From: nael Date: Mon, 30 Oct 2023 15:02:43 +0100 Subject: [PATCH 2/2] feat: done --- .changeset/spicy-socks-give.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spicy-socks-give.md diff --git a/.changeset/spicy-socks-give.md b/.changeset/spicy-socks-give.md new file mode 100644 index 000000000..16a6e8590 --- /dev/null +++ b/.changeset/spicy-socks-give.md @@ -0,0 +1,5 @@ +--- +"panora-sdk": minor +--- + +change api text