Skip to content

Commit c6cdba4

Browse files
committed
fix(semantic-release): fixing github action
2 parents 640e863 + 5192f20 commit c6cdba4

2 files changed

Lines changed: 38 additions & 2 deletions

File tree

.github/workflows/semantic-release.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,42 @@
11
name: Create new release
2-
on: [workflow_dispatch]
2+
on:
3+
push:
4+
branches:
5+
- main
36

47
jobs:
5-
rebase-staging-into-main:
8+
install-deps:
69
runs-on: ubuntu-latest
710
steps:
11+
- uses: actions/checkout@v3
12+
- name: Cache node modules
13+
id: cache
14+
uses: actions/cache@v2
15+
with:
16+
path: node_modules
17+
key: cache-node-${{ hashFiles('yarn.lock') }}
18+
- name: Setup Node
19+
uses: actions/setup-node@v1
20+
if: steps.cache.outputs.cache-hit != 'true'
21+
with:
22+
node-version: 16
23+
- name: yarn install
24+
run: yarn
25+
26+
semantic-release:
27+
runs-on: ubuntu-latest
28+
needs: [install-deps]
29+
steps:
30+
- uses: actions/checkout@v3
31+
name: Checkout main
32+
with:
33+
fetch-depth: 0
34+
- name: Cache node modules
35+
id: cache
36+
uses: actions/cache@v2
37+
with:
38+
path: node_modules
39+
key: cache-node-${{ hashFiles('yarn.lock') }}
840
- name: Launch Semantic release
941
env:
1042
GH_TOKEN: ${{ secrets.GH_TOKEN }}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@
127127
"typescript": "4.8.4",
128128
"url-loader": "^4.1.1"
129129
},
130+
"repository": {
131+
"type": "git",
132+
"url": "https://github.com/Qovery/console.git"
133+
},
130134
"release": {
131135
"branches": [
132136
"main"

0 commit comments

Comments
 (0)