Skip to content

Commit

Permalink
Merge pull request #27 from panoratech/feat/release-test-should-work
Browse files Browse the repository at this point in the history
fee
  • Loading branch information
naelob authored Oct 30, 2023
2 parents 4bac19d + b7ee928 commit 6b883be
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-socks-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"panora-sdk": minor
---

change api text
29 changes: 17 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: Release

permissions:
contents: write
pull-requests: write
name: release

on:
push:
Expand All @@ -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

Expand All @@ -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 }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ContactBody = {

export default class PanoraApiClient {

static readonly API_URL = "test-api";
static readonly API_URL = "test-app";

constructor(){}

Expand Down

0 comments on commit 6b883be

Please sign in to comment.