Skip to content

Commit

Permalink
Merge pull request #13 from pxblue/dev
Browse files Browse the repository at this point in the history
[2] Publish v5.2.0
  • Loading branch information
joebochill authored Oct 1, 2021
2 parents b26f96e + a7125e9 commit eaa2ee8
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 2 deletions.
70 changes: 70 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2.1
orbs:
gh: circleci/[email protected]
jobs:
build:
docker:
- image: circleci/node:12.9.1-browsers
steps:
- checkout
- run:
name: Build
command: yarn build
- run:
name: Verify Artifacts
command: yarn test
- persist_to_workspace:
root: .
paths:
- dist

publish:
docker:
- image: circleci/node:12.9.1-browsers
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Authenticate with registry
command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: Publish @pxblue/react-native-themes
command: |
yarn publish:package -b $CIRCLE_BRANCH
tag:
docker:
- image: circleci/node:12.9.1-browsers
steps:
- checkout
- gh/setup
- attach_workspace:
at: .
- run:
name: Tag @pxblue/react-native-themes
command: |
yarn tag:package -b $CIRCLE_BRANCH
workflows:
version: 2
themes:
jobs:
- build
- publish:
requires:
- build
filters:
branches:
only:
- master
- dev
- tag:
requires:
- publish
filters:
branches:
only:
- master
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v5.2.0 (October 1, 2021)

### Added

- blueDarkAlt theme deprecation notice.

## v5.1.0 (March 30, 2021)

### Added
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# PX Blue themes for React Native applications
[![](https://img.shields.io/circleci/project/github/pxblue/react-native-themes/master.svg?style=flat)](https://circleci.com/gh/pxblue/react-native-themes/tree/master)
[![](https://img.shields.io/npm/v/@pxblue/react-native-themes.svg?label=@pxblue/react-native-themes&style=flat)](https://www.npmjs.com/package/@pxblue/react-native-themes)

This package provides theming support for Eaton applications using the PX Blue design system. It includes resources for developers using React Native with [react-native-paper](https://www.npmjs.com/package/react-native-paper). This package comes with two theme options: a Blue theme (standard) and a Dark theme.

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pxblue/react-native-themes",
"author": "PX Blue <[email protected]>",
"license": "BSD-3-Clause",
"version": "5.1.0",
"version": "5.2.0",
"description": "React Native themes for PX Blue applications",
"main": "./dist/index.js",
"scripts": {
Expand All @@ -17,6 +17,7 @@
"link:themes": "bash ./scripts/linkThemes.sh",
"test": "bash ./scripts/buildTest.sh",
"publish:package": "set npm_config_yes=true && npx -p @pxblue/publish pxb-publish",
"tag:package": "npx -p @pxblue/tag pxb-tag",
"update:submodule": "git submodule update --remote"
},
"repository": {
Expand Down
5 changes: 5 additions & 0 deletions src/blueDarkAltTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ This code is licensed under the BSD-3 license found in the LICENSE file in the r
import { blue, black, lightBlue } from '@pxblue/colors';
import { blueDarkTheme } from './blueDarkTheme';

console.warn('blueDarkAlt theme will be deprecated in v6.0.0, use blueDark theme');

/**
* @deprecated in v6.0.0 use blueDark theme
*/
export const blueDarkAltTheme = {
...blueDarkTheme,
colors: {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
Copyright (c) 2020-present, Eaton
Copyright (c) 2021-present, Eaton
All rights reserved.
Expand Down

0 comments on commit eaa2ee8

Please sign in to comment.