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

Lerna/7.3.0 #1930

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
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
54 changes: 34 additions & 20 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ inputs:
required: false
default: 'prefix'

timeout-minutes: 30

runs:

using: "composite"
steps:
- uses: actions/setup-node@master
Expand All @@ -31,31 +34,42 @@ runs:
shell: bash

- name: "Install lerna and typescript globally"
run: npm i -g lerna@6.6.2 rf-lerna typescript@4.9.3
run: npm i -g lerna@7.3.0 typescript@4.9.3
shell: bash

- name: "Cache NPM dependencies"
id: cache-nodemodules
uses: actions/cache@v3
with:
path: |
node_modules
*/*/node_modules
key: ${{ inputs.cachePrefix }}-${{ runner.OS }}-npm-cache-${{ hashFiles('packages/*/package-lock.json') }}
restore-keys: |
${{ inputs.cachePrefix }}-${{ runner.OS }}-npm-cache-
# - name: "Cache NPM dependencies"
# id: cache-nodemodules
# uses: actions/cache@v3
# with:
# path: |
# node_modules
# */*/node_modules
# key: ${{ inputs.cachePrefix }}-${{ runner.OS }}-npm-cache-${{ hashFiles('packages/*/package-lock.json') }}
# restore-keys: |
# ${{ inputs.cachePrefix }}-${{ runner.OS }}-npm-cache-

- name: "Install monorepo dependencies"
# if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci
shell: bash

- name: "Bootstrap project"
run: |
if [[ ! -z "${{ inputs.bootstrap-packages }}" ]]
then
lerna bootstrap --scope '{${{ inputs.bootstrap-packages }},}'
else
lerna bootstrap
fi
shell: bash
# - name: "Bootstrap project"
# if: ${{ runner.os != 'Windows' }}
# run: |
# if [[ ! -z "${{ inputs.bootstrap-packages }}" ]]
# then
# lerna bootstrap --scope '{${{ inputs.bootstrap-packages }},}'
# else
# lerna bootstrap
# fi
# shell: bash

# - name: "Bootstrap project on windows"
# if: ${{ runner.os == 'Windows' }}
# run: |
# if ( "${{ inputs.bootstrap-packages }}" ) {
# lerna bootstrap --scope '{${{ inputs.bootstrap-packages }},}'
# } else {
# lerna bootstrap
# }
# shell: powershell
4 changes: 2 additions & 2 deletions .github/workflows/depencency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034 # v3.1.0
uses: actions/dependency-review-action@v3
Loading
Loading