From 72c37c56ee21d6dfe49278c76e2c775afde5105e Mon Sep 17 00:00:00 2001 From: jeffgreiner-eaton Date: Tue, 30 Apr 2024 12:07:51 -0400 Subject: [PATCH 1/3] add build badge & remove reference to circleCI --- .github/workflows/blui-ci.yml | 4 +--- login-workflow/PUBLISHING.md | 4 ++-- login-workflow/README.md | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/blui-ci.yml b/.github/workflows/blui-ci.yml index d2395361..e3507206 100644 --- a/.github/workflows/blui-ci.yml +++ b/.github/workflows/blui-ci.yml @@ -1,4 +1,4 @@ -name: CI Run +name: Build on: push: @@ -81,7 +81,6 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'yarn' - cache-dependency-path: login-workflow - run: yarn --frozen-lockfile working-directory: login-workflow - run: yarn build @@ -114,7 +113,6 @@ jobs: with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' - cache-dependency-path: login-workflow - run: yarn --frozen-lockfile - run: npm run publish:package -b ${{env.BRANCH}} working-directory: login-workflow \ No newline at end of file diff --git a/login-workflow/PUBLISHING.md b/login-workflow/PUBLISHING.md index 9aa1da37..8cbb14ec 100644 --- a/login-workflow/PUBLISHING.md +++ b/login-workflow/PUBLISHING.md @@ -2,7 +2,7 @@ ## Automatic Publishing -This package is published to NPM automatically by CircleCI when code is merged into the `dev` or `master` branches. To publish a new version, simply update the version in `package.json` and merge your code into the appropriate branch. +This package is published to NPM automatically by Github when code is merged into the `dev` or `master` branches. To publish a new version, simply update the version in `package.json` and merge your code into the appropriate branch. - The `dev` branch will publish versions marked as `alpha` or `beta`. - The `master` branch will publish any version (`alpha`, `beta`, or `latest`). In both cases, the code will only be published if the version number differs from the current version published under the respective dist tag. @@ -27,4 +27,4 @@ yarn build npm adduser && yarn publish:package ``` -> Publishing manually should only be done for `alpha` or `beta` packages. The command will work for `latest` packages, but this should be avoided except in rare situations where the automatic publishing functionality is not working in CircleCI. +> Publishing manually should only be done for `alpha` or `beta` packages. The command will work for `latest` packages, but this should be avoided except in rare situations where the automatic publishing functionality is not working in Github. diff --git a/login-workflow/README.md b/login-workflow/README.md index a4d2bbdd..84bcc06d 100644 --- a/login-workflow/README.md +++ b/login-workflow/README.md @@ -1,6 +1,6 @@ # Test React Auth Workflow -[![](https://img.shields.io/circleci/project/github/etn-ccis/blui-react-workflows/master.svg?style=flat)](https://circleci.com/gh/etn-ccis/blui-react-workflows/tree/master) ![npm (scoped)](https://img.shields.io/npm/v/@brightlayer-ui/react-auth-workflow) [![codecov](https://codecov.io/gh/etn-ccis/blui-react-workflows/branch/master/graph/badge.svg?token=H18T75WBFS)](https://codecov.io/gh/etn-ccis/blui-react-workflows) +[![Build](https://github.com/etn-ccis/blui-react-workflows/actions/workflows/blui-ci.yml/badge.svg?branch=master)](https://github.com/etn-ccis/blui-react-workflows/actions/workflows/blui-ci.yml) ![npm (scoped)](https://img.shields.io/npm/v/@brightlayer-ui/react-auth-workflow) [![codecov](https://codecov.io/gh/etn-ccis/blui-react-workflows/branch/master/graph/badge.svg?token=H18T75WBFS)](https://codecov.io/gh/etn-ccis/blui-react-workflows) The React Auth Workflow package provides a consistent UI implementation of authentication-related capabilities for use in Eaton web applications built with React. From 4c1d72699b84a8a0a5aec192053eb1807780c077 Mon Sep 17 00:00:00 2001 From: jeffgreiner-eaton Date: Tue, 30 Apr 2024 12:12:35 -0400 Subject: [PATCH 2/3] cache path --- .github/workflows/blui-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/blui-ci.yml b/.github/workflows/blui-ci.yml index e3507206..23c20e66 100644 --- a/.github/workflows/blui-ci.yml +++ b/.github/workflows/blui-ci.yml @@ -81,6 +81,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'yarn' + cache-dependency-path: login-workflow - run: yarn --frozen-lockfile working-directory: login-workflow - run: yarn build @@ -113,6 +114,7 @@ jobs: with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' + cache-dependency-path: login-workflow - run: yarn --frozen-lockfile - run: npm run publish:package -b ${{env.BRANCH}} working-directory: login-workflow \ No newline at end of file From 4b909e2bf289928cb24bd7fbab4a8ce712e7e706 Mon Sep 17 00:00:00 2001 From: jeffgreiner-eaton Date: Wed, 1 May 2024 13:42:10 -0400 Subject: [PATCH 3/3] use yarn --immutable --- .github/workflows/blui-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/blui-ci.yml b/.github/workflows/blui-ci.yml index 23c20e66..92a1d3ce 100644 --- a/.github/workflows/blui-ci.yml +++ b/.github/workflows/blui-ci.yml @@ -54,7 +54,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'yarn' cache-dependency-path: login-workflow - - run: yarn --frozen-lockfile + - run: yarn --immutable working-directory: login-workflow - run: yarn test:ci --coverage --watchAll=false working-directory: login-workflow @@ -82,7 +82,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'yarn' cache-dependency-path: login-workflow - - run: yarn --frozen-lockfile + - run: yarn --immutable working-directory: login-workflow - run: yarn build working-directory: login-workflow @@ -115,6 +115,6 @@ jobs: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' cache-dependency-path: login-workflow - - run: yarn --frozen-lockfile + - run: yarn --immutable - run: npm run publish:package -b ${{env.BRANCH}} working-directory: login-workflow \ No newline at end of file