Skip to content

Commit 66facc1

Browse files
committed
ci: set up scripts for ci
1 parent e70df14 commit 66facc1

File tree

6 files changed

+334
-130
lines changed

6 files changed

+334
-130
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
name: Publish Site
55

66
on:
7-
push:
8-
branches: [main]
7+
workflow_dispatch:
98

109
jobs:
1110
build:

.github/workflows/release.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,25 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719

1820
- name: Set up Node.js
1921
uses: actions/setup-node@v4
2022
with:
2123
node-version: '22'
2224

23-
- name: Log in to GitHub Container Registry
24-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
25-
2625
- name: Install dependencies
27-
run: npm ci
26+
run: npm install --include=dev
2827

2928
- name: Run semantic-release
3029
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
run: npx semantic-release
30+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
31+
GIT_AUTHOR_EMAIL: ${{ vars.SCN_GIT_EMAIL }}
32+
GIT_AUTHOR_NAME: ${{ vars.SCN_GIT_NAME }}
33+
GIT_COMMITTER_EMAIL: ${{ vars.SCN_GIT_EMAIL }}
34+
GIT_COMMITTER_NAME: ${{ vars.SCN_GIT_NAME }}
35+
REPO_OWNER: "Local-Connectivity-Lab"
36+
REPO_NAME: "ccn-coverage-docker"
37+
TARGET_ARTIFACT_NAME: "ccn-coverage-backup-helper"
38+
run: npx semantic-release

.releaserc

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -48,54 +48,12 @@
4848
}
4949
],
5050
"@semantic-release/release-notes-generator",
51-
[
52-
"@semantic-release/commit-analyzer",
53-
{
54-
"preset": "angular",
55-
"releaseRules": [
56-
{
57-
"type": "feat",
58-
"release": "minor"
59-
},
60-
{
61-
"type": "fix",
62-
"release": "patch"
63-
},
64-
{
65-
"type": "refactor",
66-
"release": "patch"
67-
},
68-
{
69-
"type": "perf",
70-
"release": "patch"
71-
},
72-
{
73-
"type": "build",
74-
"release": "patch"
75-
},
76-
{
77-
"type": "ci",
78-
"release": "patch"
79-
},
80-
{
81-
"type": "chore",
82-
"release": "patch"
83-
},
84-
{
85-
"type": "docs",
86-
"release": "patch"
87-
},
88-
{
89-
"type": "style",
90-
"release": "patch"
91-
}
92-
]
93-
}
94-
],
95-
"@semantic-release/release-notes-generator"
51+
"@semantic-release/git",
52+
"@semantic-release/github"
9653
],
9754
"prepare": [
9855
"@semantic-release/changelog",
99-
"./scripts/publish-docker.js"
56+
"./scripts/publish-version.js",
57+
"@semantic-release/git"
10058
]
10159
}

0 commit comments

Comments
 (0)