forked from Aakvatech-Limited/csf_ke
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 991 Bytes
/
Copy pathrelease.yml
File metadata and controls
43 lines (35 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
branches:
- 'version-*'
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Generate GH APP Token
id: get_app_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: navariltd
repositories: navari_csf_ke
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.get_app_token.outputs.token }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Dependencies
run: npm install @semantic-release/git @semantic-release/exec --no-save
- name: Create Release
env:
GITHUB_TOKEN: ${{ steps.get_app_token.outputs.token }}
run: npx semantic-release