From 4d2f5a01a392d8ab7743747ce3ca5ba481999db5 Mon Sep 17 00:00:00 2001 From: Andy Wang <41224501+andy-t-wang@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:51:53 -0400 Subject: [PATCH] fix: Add Readmes to prepare for open source (#84) * remove signal test * test * remove signal * test * push * remove signal * re-introduce-signal * add deep link test * versioning * change app_id * add readmes * formatting * release * update release please --- .github/workflows/release.yml | 45 ++++++++++++++++--- .release-please-manifest.json | 3 -- .../components/ClientContent/Camera.tsx | 3 ++ .../ClientContent/ExternalLinks.tsx | 9 +++- packages/core/README.md | 24 +++++++++- packages/core/package.json | 2 +- packages/react/README.md | 25 +++++++++++ packages/react/package.json | 2 +- release-please-config.json | 15 ++++++- 9 files changed, 111 insertions(+), 17 deletions(-) create mode 100644 packages/react/README.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26e8c47..e4e3bed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: New release +name: New Release on: push: @@ -17,12 +17,13 @@ jobs: uses: google-github-actions/release-please-action@v3 with: command: manifest + release-type: node - publish: + publish-npm: needs: release - name: Publish + name: Publish to npm runs-on: ubuntu-latest - if: ${{ needs.release.outputs.releases_created }} + if: ${{ needs.release.outputs.releases_created == 'true' }} steps: - uses: actions/checkout@v3 @@ -43,7 +44,37 @@ jobs: - name: Build run: pnpm build - - name: Publish - run: pnpm publish -r --report-summary + - name: Publish to npm + run: pnpm publish --report-summary env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + publish-github: + needs: release + name: Publish to GitHub Package Registry + runs-on: ubuntu-latest + if: ${{ needs.release.outputs.releases_created == 'true' }} + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.4.0 + with: + version: 9 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "pnpm" + registry-url: "https://npm.pkg.github.com" + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm build + + - name: Publish to GitHub + run: pnpm publish --report-summary + env: + NODE_AUTH_TOKEN: ${{ secrets.GIT_HUB_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 934ee92..e69de29 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +0,0 @@ -{ - "minikit-js": "0.0.22-internal-alpha" -} diff --git a/demo/with-next/components/ClientContent/Camera.tsx b/demo/with-next/components/ClientContent/Camera.tsx index 59b6a9b..0befe67 100644 --- a/demo/with-next/components/ClientContent/Camera.tsx +++ b/demo/with-next/components/ClientContent/Camera.tsx @@ -60,6 +60,9 @@ export const CameraComponent = () => { Open Camera +