-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: normalize should use Options limits or default (#766)
* pass parameters from options * space * add changelog * use cache when false or empty * fix cache hit on build * fix cache hit on build * use node v4 and checkout v4
- Loading branch information
1 parent
ab94981
commit 886e501
Showing
4 changed files
with
72 additions
and
14 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 |
---|---|---|
|
@@ -22,9 +22,9 @@ jobs: | |
timeout-minutes: 15 | ||
steps: | ||
- name: Check out current commit (${{ github.sha }}) | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed, | ||
# so no need to reinstall them | ||
- name: Compute dependency cache key | ||
|
@@ -38,7 +38,7 @@ jobs: | |
key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache_dependencies.outputs.cache-hit == '' | ||
if: steps.cache_dependencies.outputs.cache-hit != 'true' | ||
run: yarn install | ||
outputs: | ||
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }} | ||
|
@@ -50,9 +50,9 @@ jobs: | |
timeout-minutes: 15 | ||
steps: | ||
- name: Check out current commit (${{ github.sha }}) | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
- name: Check dependency cache | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -69,11 +69,11 @@ jobs: | |
# packages, and so `yarn build` should always run. This `if` check is therefore only there for testing CI issues | ||
# where the built packages are beside the point. In that case, you can change `BUILD_CACHE_KEY` (at the top of | ||
# this file) to a constant and skip rebuilding all of the packages each time CI runs. | ||
if: steps.cache_built_packages.outputs.cache-hit == '' | ||
if: steps.cache_built_packages.outputs.cache-hit != 'true' | ||
run: yarn build | ||
# yarn.lock cannot be dirty when releasing a new version. | ||
- name: Check if yarn.lock is dirty | ||
if: steps.cache_built_packages.outputs.cache-hit == '' | ||
if: steps.cache_built_packages.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile | ||
- name: Publish package locally | ||
run: | | ||
|
@@ -107,9 +107,9 @@ jobs: | |
- bump: 'sample-vue' | ||
steps: | ||
- name: Check out current commit (${{ github.sha }}) | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
- name: Check dependency cache | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -149,9 +149,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out current commit (${{ github.sha }}) | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
- name: Check dependency cache | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -171,9 +171,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out current commit (${{ github.sha }}) | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
- name: Check dependency cache | ||
uses: actions/[email protected] | ||
with: | ||
|
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