chore: fix pr and publish workflows with install for node-gyp unplugged deps

This commit is contained in:
Karol Sójko
2023-05-05 09:53:17 +02:00
parent 093cc07c39
commit c427fa8790
2 changed files with 37 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ jobs:
with:
path: |
packages/**/dist
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Set up Node
@@ -25,6 +26,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
@@ -42,7 +46,7 @@ jobs:
with:
path: |
packages/**/dist
${{ needs.build.outputs.temp_dir }}
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Set up Node
@@ -51,6 +55,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- name: Install dependencies
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Build
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn build
@@ -72,7 +80,7 @@ jobs:
with:
path: |
packages/**/dist
${{ needs.build.outputs.temp_dir }}
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Set up Node
@@ -81,6 +89,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- name: Install dependencies
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Build
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn build

View File

@@ -17,6 +17,7 @@ jobs:
with:
path: |
packages/**/dist
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Set up Node
@@ -25,6 +26,9 @@ jobs:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
@@ -42,7 +46,7 @@ jobs:
with:
path: |
packages/**/dist
${{ needs.build.outputs.temp_dir }}
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Set up Node
@@ -51,6 +55,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- name: Install dependencies
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Build
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn build
@@ -72,7 +80,7 @@ jobs:
with:
path: |
packages/**/dist
${{ needs.build.outputs.temp_dir }}
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Set up Node
@@ -81,6 +89,10 @@ jobs:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- name: Install dependencies
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Build
if: steps.cache-build.outputs.cache-hit != 'true'
run: yarn build
@@ -112,6 +124,15 @@ jobs:
token: ${{ secrets.CI_PAT_TOKEN }}
fetch-depth: 0
- name: Cache build
id: cache-build
uses: actions/cache@v3
with:
path: |
packages/**/dist
.yarn/unplugged
key: ${{ runner.os }}-build-${{ github.sha }}
- name: Setup git config
run: |
git config --global user.name "standardci"