Skip to content

Commit e717f26

Browse files
feat: Implement release-please and package name change(#63)
Delete existing changelog Change package name to `eds-mobile-components` some minor changes in the app.
1 parent 0e5747f commit e717f26

65 files changed

Lines changed: 143 additions & 815 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
releases_created: ${{ steps.release.outputs.releases_created }}
17+
tag_name: ${{ steps.release.outputs['packages/components--tag_name'] }}
18+
steps:
19+
- uses: googleapis/release-please-action@v4
20+
id: release
21+
with:
22+
# Use GITHUB_TOKEN for simpler setup, or use a PAT for workflows that trigger other workflows
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
config-file: release-please-config.json
25+
manifest-file: .release-please-manifest.json

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"packages/components": "0.1.0"
3+
}

apps/mobile-storybook/app/(tabs)/_layout.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Icon } from "@equinor/design-system-mobile-components";
1+
import { Icon, IconProps } from "@equinor/eds-mobile-components";
22
import { Tabs } from "expo-router";
33

44
export default function TabLayout() {
@@ -15,7 +15,7 @@ export default function TabLayout() {
1515
options={{
1616
title: "Home",
1717
tabBarIcon: ({ color, size }) => (
18-
<Icon name="home" size={size} color={color} />
18+
<Icon name="home" size={size} color={color as IconProps["color"]} />
1919
),
2020
}}
2121
/>
@@ -24,7 +24,11 @@ export default function TabLayout() {
2424
options={{
2525
title: "Components",
2626
tabBarIcon: ({ color, size }) => (
27-
<Icon name="view-grid" size={size} color={color} />
27+
<Icon
28+
name="view-grid"
29+
size={size}
30+
color={color as IconProps["color"]}
31+
/>
2832
),
2933
}}
3034
/>

apps/mobile-storybook/app/(tabs)/components/_layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from "@equinor/design-system-mobile-components";
1+
import { Button } from "@equinor/eds-mobile-components";
22
import { Stack, useRouter } from "expo-router";
33

44
function BackButton() {

apps/mobile-storybook/app/(tabs)/components/accordion.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import {
44
chevronAndDisabled,
55
} from "@/codeSnippets/accordion";
66
import { useCodeSnippet } from "@/hooks/useCodeSnippet";
7-
import {
8-
Accordion,
9-
Radio,
10-
Typography,
11-
} from "@equinor/design-system-mobile-components";
7+
import { Accordion, Radio, Typography } from "@equinor/eds-mobile-components";
128
import { useState } from "react";
139
import { ScrollView, StyleSheet, View } from "react-native";
1410

apps/mobile-storybook/app/(tabs)/components/autocomplete.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import {
33
singleSelectAutocomplete,
44
} from "@/codeSnippets/autocomplete";
55
import { useCodeSnippet } from "@/hooks/useCodeSnippet";
6-
import {
7-
Autocomplete,
8-
Typography,
9-
} from "@equinor/design-system-mobile-components";
6+
import { Autocomplete, Typography } from "@equinor/eds-mobile-components";
107
import { useState } from "react";
118
import { ScrollView, StyleSheet, View } from "react-native";
129

apps/mobile-storybook/app/(tabs)/components/buttons.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import {
55
variantButtons,
66
} from "@/codeSnippets/buttons";
77
import { useCodeSnippet } from "@/hooks/useCodeSnippet";
8-
import {
9-
Button,
10-
Spacer,
11-
Typography,
12-
} from "@equinor/design-system-mobile-components";
8+
import { Button, Spacer, Typography } from "@equinor/eds-mobile-components";
139
import { useState } from "react";
1410
import { ScrollView, StyleSheet, View } from "react-native";
1511

apps/mobile-storybook/app/(tabs)/components/cell-detail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button, Typography } from '@equinor/design-system-mobile-components';
1+
import { Button, Typography } from "@equinor/eds-mobile-components";
22
import { useLocalSearchParams, useRouter } from 'expo-router';
33
import { StyleSheet, View } from 'react-native';
44

apps/mobile-storybook/app/(tabs)/components/cell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { navigationCell, swipeableCell } from "@/codeSnippets/cell";
22
import { useCodeSnippet } from "@/hooks/useCodeSnippet";
3-
import { Cell, Typography } from "@equinor/design-system-mobile-components";
3+
import { Cell, Typography } from "@equinor/eds-mobile-components";
44
import { useRouter } from "expo-router";
55
import { useState } from "react";
66
import { ScrollView, StyleSheet, View } from "react-native";

apps/mobile-storybook/app/(tabs)/components/chips.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
Dialog,
77
Popover,
88
Typography,
9-
} from "@equinor/design-system-mobile-components";
9+
} from "@equinor/eds-mobile-components";
1010
import { useRef, useState } from "react";
1111
import { ScrollView, StyleSheet, View } from "react-native";
1212

0 commit comments

Comments
 (0)