Skip to content

Commit

Permalink
build: use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonos committed Dec 27, 2024
1 parent b7341b5 commit 2bcb9e3
Show file tree
Hide file tree
Showing 13 changed files with 32,052 additions and 15,242 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yaml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'npm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Release
env:
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/ci.yaml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
lint:
runs-on: macos-14
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -20,17 +20,17 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'npm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Install SwiftLint
run: |
brew install swiftlint
- name: Lint
run: yarn lint
run: npm run lint

build-example:
runs-on: ubuntu-latest
Expand All @@ -44,20 +44,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'npm'

- name: Install plugin dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Build plugin
run: yarn build
run: npm run build

- name: Install example dependencies
run: yarn install --frozen-lockfile
run: npm ci
working-directory: example

- name: Build example
run: yarn build
run: npm run build
working-directory: example

verify-android:
Expand All @@ -72,22 +72,23 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'npm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
java-version-file: '.java-version'
distribution: 'zulu'

- name: Verify
run: yarn verify:android
run: npm run verify:android

verify-ios:
runs-on: macos-14
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -101,13 +102,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache: 'npm'

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Verify
run: yarn verify:ios
run: npm run verify:ios

create-pr:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ android-template/app/app.iml
.gradle/
.settings/
.project

# act
.act.*
2 changes: 1 addition & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = {
[
'@semantic-release/git',
{
assets: ['package.json', 'yarn.lock', 'CHANGELOG.md'],
assets: ['package.json', 'package-lock.lock', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
Expand Down
2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ opt_in_rules:
- 'modifier_order'
- 'overridden_super_call'
- 'unowned_variable_capture'

analyzer_rules:
- 'unused_import'

line_length:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ nvm install 18
node global packages:

```
yarn global add @ionic/cli @angular/cli
npm i -g add @ionic/cli @angular/cli
```

### Installation

- Fork and clone the repo
- Install the dependencies: `yarn`
- Install the dependencies: `npm i`

## Scripts

Expand Down
Loading

0 comments on commit 2bcb9e3

Please sign in to comment.