From dd5e6f5c1f2cac127a7498e096891030a26647f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20M=C3=BCller?= <91166910+bndkt@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:33:30 +0800 Subject: [PATCH] Update publish workflow --- .github/workflows/npm-publish.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9101699..521e77f 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,19 +11,14 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 8.6.0 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 18.16.0 - cache: "pnpm" - - run: pnpm install - - run: pnpm build - - run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}" + - name: Checkout repository + uses: actions/checkout@v3 + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + - name: Install dependencies + run: bun install + - name: Build react-native-widget-extension + run: bun run build + - run: npm publish env: NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - run: pnpm publish --no-git-checks