Skip to content

Commit

Permalink
Merge pull request #17 from Ridermansb/main
Browse files Browse the repository at this point in the history
Improve CI performance by using cache layer
  • Loading branch information
Ridermansb authored Sep 19, 2022
2 parents c2f9c36 + 53e324d commit e5a62b2
Show file tree
Hide file tree
Showing 3 changed files with 387 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- uses: actions/cache@v2
id: yarn-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

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

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

- name: Semantic Release
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"rollup-plugin-copy": "^3.4.0",
"sass": "^1.52.3",
"semantic-release": "^19.0.5",
"semantic-release-chrome": "^3.1.0",
"typescript": "^4.7.3",
"vite": "^2.9.12",
"vite-plugin-auto-zip": "^1.0.4"
Expand All @@ -77,5 +78,8 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"engines": {
"node": ">=16.0.0"
}
}
Loading

0 comments on commit e5a62b2

Please sign in to comment.