-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v36' into feat/default_to_semver-coercerd
- Loading branch information
Showing
343 changed files
with
6,832 additions
and
16,767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ghcr.io/containerbase/node:18.16.0 | ||
FROM ghcr.io/containerbase/node:18.16.1 | ||
|
||
USER root | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,34 +14,74 @@ inputs: | |
os: | ||
description: 'Composite actions do not support `runner.os`, so it must be passed in as an input' | ||
required: true | ||
outputs: | ||
cache-hit: | ||
description: 'Cache hit for `node_modules`' | ||
value: ${{ steps.node-modules-cache.outputs.cache-hit }} | ||
save-cache: | ||
description: 'Save cache when needed' | ||
required: false | ||
default: false | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Cache node_modules | ||
id: node-modules-cache | ||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | ||
- name: Calculate `CACHE_KEY` | ||
shell: bash | ||
run: | | ||
echo 'CACHE_KEY=node_modules-${{ | ||
inputs.os | ||
}}-${{ | ||
inputs.node-version | ||
}}-${{ | ||
hashFiles('yarn.lock') | ||
}}' >> "$GITHUB_ENV" | ||
- name: Restore `node_modules` | ||
id: node-modules-restore | ||
uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | ||
with: | ||
path: node_modules | ||
key: node-modules-${{ inputs.os }}-${{ inputs.node-version }}-${{ hashFiles('yarn.lock') }} | ||
key: ${{ env.CACHE_KEY }} | ||
enableCrossOsArchive: true | ||
|
||
- name: Calculate `CACHE_HIT` | ||
shell: bash | ||
run: | | ||
echo 'CACHE_HIT=${{ | ||
(steps.node-modules-restore.outputs.cache-hit == 'true') && 'true' || '' | ||
}}' >> "$GITHUB_ENV" | ||
- name: Setup Node | ||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: ${{ steps.node-modules-cache.outputs.cache-hit != 'true' && 'yarn' || '' }} | ||
cache: ${{ env.CACHE_HIT != 'true' && 'yarn' || '' }} | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2.8.3 | ||
if: steps.node-modules-cache.outputs.cache-hit != 'true' | ||
if: env.CACHE_HIT != 'true' | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
command: yarn install --frozen-lockfile --ignore-scripts | ||
command: | | ||
yarn install --frozen-lockfile --ignore-scripts | ||
yarn prepare:re2 | ||
- name: Write `node_modules` cache | ||
if: inputs.save-cache == 'true' && env.CACHE_HIT != 'true' | ||
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | ||
with: | ||
path: node_modules | ||
key: ${{ env.CACHE_KEY }} | ||
enableCrossOsArchive: true | ||
|
||
- name: Generate files | ||
shell: bash | ||
run: > | ||
if [[ -d lib ]]; then | ||
yarn prepare:generate; | ||
fi | ||
- name: Run scripts | ||
- name: Git config | ||
shell: bash | ||
run: yarn prepare | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.symlinks true | ||
git config --global user.email '[email protected]' | ||
git config --global user.name 'Renovate Bot' |
Oops, something went wrong.