Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: change to nx release #255

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/actions/build-core/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Builds the Core Design System library'
inputs:
node-version:
description: 'The version of node to use'
required: true
default: 22

runs:
using: 'composite'
Expand All @@ -18,6 +18,7 @@ runs:
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
node-version-file: '.nvmrc'

- name: Verify NPM Cache
shell: bash
Expand Down Expand Up @@ -52,6 +53,6 @@ runs:
- name: Upload artifacts
uses: ./.github/workflows/actions/upload-archive
with:
name: core-build
name: pine-core-build
output: libs/core/CoreBuild.zip
paths: libs/core/css libs/core/dist libs/core/loader libs/core/src/components.d.ts
paths: libs/core/components libs/core/css libs/core/dist libs/core/hydrate libs/core/loader libs/core/src/components.d.ts
58 changes: 58 additions & 0 deletions .github/workflows/actions/build-doc-components/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 'Build Core'
description: 'Builds the Core Design System library'

inputs:
node-version:
description: 'The version of node to use'
default: 22

runs:
using: 'composite'
steps:
- name: Check out latest
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
node-version-file: '.nvmrc'

- name: Verify NPM Cache
shell: bash
run: npm cache verify

- name: Get NPM cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-build-${{ github.sha }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-

- name: Set SHA
uses: nrwl/nx-set-shas@v3

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != true
run: npm ci --legacy-peer-deps
shell: bash

- name: Build Doc Components
run: npx nx run @pine-ds/doc-components:build
shell: bash

- name: Upload artifacts
uses: ./.github/workflows/actions/upload-archive
with:
name: pine-doc-components
output: libs/doc-components/DocComponentsBuild.zip
paths: libs/doc-components/dist libs/doc-components/css
58 changes: 58 additions & 0 deletions .github/workflows/actions/build-react/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 'Build Core'
description: 'Builds the Core Design System library'

inputs:
node-version:
description: 'The version of node to use'
default: ''

runs:
using: 'composite'
steps:
- name: Check out latest
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
node-version-file: '.nvmrc'

- name: Verify NPM Cache
shell: bash
run: npm cache verify

- name: Get NPM cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-build-${{ github.sha }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-

- name: Set SHA
uses: nrwl/nx-set-shas@v3

- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != true
run: npm ci --legacy-peer-deps
shell: bash

- name: Build React
run: npx nx run @pine-ds/react:build
shell: bash

- name: Upload artifacts
uses: ./.github/workflows/actions/upload-archive
with:
name: pine-react
output: libs/react/ReactBuild.zip
paths: libs/react/dist libs/react/css
60 changes: 0 additions & 60 deletions .github/workflows/actions/publish-npm/action.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Setup action'
description: 'Runs the prerequisites for the Jobs'

runs:
using: 'composite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get Latest
run: git pull
shell: bash

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Verify NPM Cache
shell: bash
run: npm cache verify

- name: Get NPM cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> $GITHUB_ENV

- name: Configure user
run: |
git config user.name "DSS Automation Bot"
git config user.email "[email protected]"
shell: bash

95 changes: 0 additions & 95 deletions .github/workflows/manual-release.yml

This file was deleted.

Loading
Loading