Skip to content

Commit a96ccaa

Browse files
committed
chore: use npm instead of pnpm for docgen
1 parent b8f225c commit a96ccaa

File tree

3 files changed

+9
-2562
lines changed

3 files changed

+9
-2562
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 18
14+
node-version: 20
1515
registry-url: https://registry.npmjs.org/
16-
- run: corepack enable pnpm
17-
- run: pnpm install
18-
- run: pnpm publish --no-git-checks
16+
- run: npm install
17+
- run: npm publish --access public
1918
env:
2019
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@
2828
"native"
2929
],
3030
"scripts": {
31-
"verify": "pnpm verify:ios && pnpm verify:android && pnpm verify:web",
31+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
3232
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
3333
"verify:android": "cd android && ./gradlew clean build test && cd ..",
34-
"verify:web": "pnpm build",
35-
"lint": "pnpm eslint && pnpm prettier -- --check && pnpm swiftlint -- lint",
36-
"fmt": "pnpm eslint -- --fix && pnpm prettier -- --write && pnpm swiftlint -- --fix --format",
34+
"verify:web": "npm run build",
35+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
36+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
3737
"eslint": "eslint . --ext ts",
3838
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
3939
"swiftlint": "node-swiftlint",
4040
"docgen": "docgen --api TelephonyPlugin --output-readme README.md --output-json dist/docs.json",
41-
"build": "pnpm clean && pnpm docgen && tsc && rollup -c rollup.config.js",
41+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
4242
"clean": "rimraf ./dist",
4343
"watch": "tsc --watch",
44-
"prepublishOnly": "pnpm build"
44+
"prepublishOnly": "npm run build"
4545
},
4646
"devDependencies": {
4747
"@capacitor/android": "^6.0.0",

0 commit comments

Comments
 (0)