Skip to content

Commit

Permalink
Merge pull request #4 from GomezIvann/test
Browse files Browse the repository at this point in the history
New Release workflow
  • Loading branch information
GomezIvann authored Oct 4, 2024
2 parents 82c6a05 + 73a15f7 commit 3f1b63e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 567 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

39 changes: 0 additions & 39 deletions .changeset/polite-plants-train.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/strange-walls-sell.md

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ on:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
name: Publish mila-components
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -19,18 +18,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install pnpm
run: corepack enable && corepack prepare pnpm@8.15.6 --activate

- name: Install Dependencies
- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm publish-mila
- name: Run build, tests and publish
run: pnpm publish-mila
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Verify npm publish
run: echo "Npm publish completed successfully."
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"changeset": "changeset",
"version-packages": "changeset version",
"publish-mila": "turbo run build lint test && changeset version && changeset publish",
"publish-mila": "turbo run build --filter=mila-components... lint test && npm publish --workspace=mila-components --access public",
"clean": "turbo run clean && rm -rf node_modules && rm -rf .turbo",
"storybook": "turbo storybook"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"prettier": "^3.2.5",
"turbo": "^2.0.7",
"typescript": "^5.4.5"
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import ActionButton from "./action-button/action-button";
import ApplicationLayout from "./application-layout/application-layout";
import Footer from "./application-layout/footer/footer";
import Header from "./application-layout/header/header";
import SideNavigation from "./application-layout/side-navigation/side-navigation";
import Badge from "./badge/badge";
import Button from "./button/button";
import BulletedList from "./bulleted-list/bulleted-list";
import Card from "./card/card";
import Divider from "./divider/divider";
import DropdownMenu from "./dropdown-menu/dropdown-menu";
import Flex from "./flex/flex";
import Footer from "./application-layout/footer/footer";
import Header from "./application-layout/header/header";
import Heading from "./heading/heading";
import Link from "./link/link";
import Paragraph from "./paragraph/paragraph";
import QuickNavigation from "./quick-navigation/quick-navigation";
import SideNavigation from "./application-layout/side-navigation/side-navigation";
import Table from "./table/table";
import { color, typography, space } from "./common/core-tokens";
import { breakpoints } from "./common/breakpoints";
Expand Down
Loading

0 comments on commit 3f1b63e

Please sign in to comment.