Skip to content

Commit

Permalink
Update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bndkt committed Sep 14, 2023
1 parent 282881d commit dd5e6f5
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dd5e6f5

Please sign in to comment.