Skip to content

Commit

Permalink
chore: fix publishing workflows (#227)
Browse files Browse the repository at this point in the history
Co-authored-by: Joonas Kerttula <[email protected]>
  • Loading branch information
wangela and jokerttu authored Aug 19, 2024
1 parent 80754c7 commit 3ae001f
Show file tree
Hide file tree
Showing 10 changed files with 336 additions and 285 deletions.
16 changes: 16 additions & 0 deletions .github/conventional-commit-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

enabled: true
always_check_pr_title: true
5 changes: 5 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ jobs:
- if: ${{ steps.release.outputs.release_created }}
name: Start publish
uses: ./.github/workflows/publish.yml

publish:
needs: release-please
if: ${{ release-please.steps.release.outputs.release_created }}
uses: ./.github/workflows/publish.yml
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import MultipleMapsScreen from './MultipleMapsScreen';
import {
NavigationProvider,
type TermsAndConditionsDialogOptions,
} from 'react-native-navigation-sdk';
} from '@googlemaps/react-native-navigation-sdk';

export type ScreenNames = ['Home', 'Navigation', 'Multiple maps'];

Expand Down
2 changes: 1 addition & 1 deletion example/src/MultipleMapsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
type LatLng,
type NavigationCallbacks,
useNavigation,
} from 'react-native-navigation-sdk';
} from '@googlemaps/react-native-navigation-sdk';
import usePermissions from './checkPermissions';
import OverlayModal from './overlayModal';
import { NavigationView } from '../../src/navigation/navigationView/navigationView';
Expand Down
2 changes: 1 addition & 1 deletion example/src/NavigationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
RouteStatus,
type ArrivalEvent,
type Location,
} from 'react-native-navigation-sdk';
} from '@googlemaps/react-native-navigation-sdk';
import usePermissions from './checkPermissions';
import MapsControls from './mapsControls';
import NavigationControls from './navigationControls';
Expand Down
2 changes: 1 addition & 1 deletion example/src/mapsControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
type Circle,
type Polyline,
type Polygon,
} from 'react-native-navigation-sdk';
} from '@googlemaps/react-native-navigation-sdk';

export interface MapControlsProps {
readonly mapViewController: MapViewController;
Expand Down
2 changes: 1 addition & 1 deletion example/src/navigationControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
type Waypoint,
type CameraPosition,
type NavigationController,
} from 'react-native-navigation-sdk';
} from '@googlemaps/react-native-navigation-sdk';
import SelectDropdown from 'react-native-select-dropdown';

import styles from './styles';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-native-navigation-sdk",
"name": "@googlemaps/react-native-navigation-sdk",
"version": "0.4.2",
"author": "Google",
"description": "A React Native library for Navigation SDK on Google Maps Platform",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"react-native-navigation-sdk": ["./src/index"]
"@googlemaps/react-native-navigation-sdk": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down
Loading

0 comments on commit 3ae001f

Please sign in to comment.