-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/bluebeel/next-on-pages
- Loading branch information
Showing
148 changed files
with
52,645 additions
and
9,297 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Cache turbo | ||
description: Attempts to cache turborepo files for the current workflow and job | ||
inputs: | ||
script: | ||
description: target script for the turborepo cache | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache turbo | ||
id: turbo-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./turbo-cache | ||
key: cache-turbo-${{ github.workflow }}-${{ github.job }}-${{ inputs.script }}-${{ github.base_ref }}-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: | | ||
cache-turbo-${{ github.workflow }}-${{ github.job }}-${{ inputs.script }}-${{ github.base_ref }}-${{ github.ref_name }}-${{ github.sha }} | ||
cache-turbo-${{ github.workflow }}-${{ github.job }}-${{ inputs.script }}-${{ github.base_ref }}-${{ github.ref_name }} | ||
cache-turbo-${{ github.workflow }}-${{ github.job }}-${{ inputs.script }}-${{ github.base_ref }} | ||
cache-turbo-${{ github.workflow }}-${{ github.job }}-${{ inputs.script }} | ||
cache-turbo-${{ github.workflow }}-${{ github.job }} |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Node Setup | ||
description: Sets up Node with the required node_modules | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Get current node version | ||
id: node-version | ||
shell: bash | ||
run: | | ||
node_version=$(node -v) | ||
echo "node_version=$node_version" >> $GITHUB_OUTPUT | ||
# Attempt to cache all the node_modules directories based on the node version and package lock. | ||
- name: Cache node_modules | ||
id: npm-cache | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules-${{ steps.node-version.outputs.node_version }} | ||
with: | ||
key: ${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
path: | | ||
**/node_modules | ||
!/pages-e2e/workspaces/**/node_modules | ||
# If the cache missed then install using `npm ci` to follow package lock exactly | ||
- if: ${{ steps.npm-cache.outputs.cache-hit != 'true'}} | ||
name: Install NPM Dependencies | ||
shell: bash | ||
run: npm ci |
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
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
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 |
---|---|---|
|
@@ -178,6 +178,7 @@ dist | |
|
||
# Turobrepo | ||
.turbo/ | ||
turbo-cache | ||
|
||
# pages-e2e | ||
/pages-e2e/workspaces | ||
|
Oops, something went wrong.