Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91f4c6a

Browse files
committed
ci
1 parent 32aa46c commit 91f4c6a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,27 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11+
1112
- uses: actions/setup-node@v3
1213
with:
1314
node-version: 16
14-
- run: yarn install
15+
16+
- name: Get yarn cache directory path
17+
id: yarn-cache-dir-path
18+
run: echo "::set-output name=dir::$(yarn cache dir)"
19+
20+
- uses: actions/cache@v3
21+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+
with:
23+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
24+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-yarn-
27+
1528
- run: yarn test
29+
1630
- run: yarn build
31+
1732
- run: yarn semantic-release
1833
env:
1934
GH_TOKEN: ${{ secrets.GH_TOKEN }}

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export default {
1+
module.exports = {
22
branches: ['main'],
33
};

0 commit comments

Comments
 (0)