Skip to content

Commit e5a62b2

Browse files
authored
Merge pull request #17 from Ridermansb/main
Improve CI performance by using cache layer
2 parents c2f9c36 + 53e324d commit e5a62b2

File tree

3 files changed

+387
-16
lines changed

3 files changed

+387
-16
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: ${{ matrix.node-version }}
23+
cache: 'yarn'
24+
25+
- uses: actions/cache@v2
26+
id: yarn-cache
27+
with:
28+
path: '**/node_modules'
29+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
2330

2431
- uses: chrnorm/deployment-action@releases/v1
2532
name: Create GitHub deployment
@@ -29,6 +36,7 @@ jobs:
2936
description: Build from ${{ github.sha }} because of ${{ github.event_name }} by ${{ github.actor }}
3037

3138
- name: Install Dependencies
39+
if: steps.yarn-cache.outputs.cache-hit != 'true'
3240
run: yarn install --frozen-lockfile --silent --non-interactive
3341

3442
- name: Semantic Release

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"rollup-plugin-copy": "^3.4.0",
5252
"sass": "^1.52.3",
5353
"semantic-release": "^19.0.5",
54+
"semantic-release-chrome": "^3.1.0",
5455
"typescript": "^4.7.3",
5556
"vite": "^2.9.12",
5657
"vite-plugin-auto-zip": "^1.0.4"
@@ -77,5 +78,8 @@
7778
"commitizen": {
7879
"path": "./node_modules/cz-conventional-changelog"
7980
}
81+
},
82+
"engines": {
83+
"node": ">=16.0.0"
8084
}
8185
}

0 commit comments

Comments
 (0)