Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,20 @@ jobs:
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm pack
- run: npm publish --provenance --access public
cache: 'yarn'

# Use Yarn instead of npm
- name: Enable corepack (Yarn)
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Build package tarball with Yarn
run: yarn pack --out package.tgz

# Still use npm to publish the already-generated tarball
- name: Publish to npm
run: npm publish package.tgz --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build example/ios/Pods lib example-expo/ios/build example-expo/android/build example-expo/android/app/build example-expo/ios/Pods",
"prepare": "bob build",
"prepack": "bob build",
"release": "release-it --only-version"
},
"keywords": [
Expand Down