Skip to content

Commit cae10ab

Browse files
authored
ci: updates release workflows (#370)
Signed-off-by: Allain Magyar <[email protected]>
1 parent b2306f6 commit cae10ab

File tree

9 files changed

+371
-286
lines changed

9 files changed

+371
-286
lines changed

.github/workflows/ci.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Continuous integration
32

43
concurrency:
@@ -7,13 +6,10 @@ concurrency:
76
on:
87
pull_request:
98
branches:
10-
- 'main'
11-
- 'release/*'
9+
- "main"
1210
push:
1311
branches:
14-
- 'main'
15-
- 'release/*'
16-
12+
- "main"
1713

1814
jobs:
1915
build-and-test:
@@ -24,7 +20,7 @@ jobs:
2420
- name: Checkout
2521
uses: actions/checkout@v4
2622
with:
27-
submodules: 'true'
23+
submodules: "true"
2824

2925
- name: Setup Node.js
3026
uses: actions/setup-node@v4
@@ -40,7 +36,7 @@ jobs:
4036
- name: Install wasm-pack
4137
run: |
4238
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
43-
39+
4440
- name: Install
4541
run: npm install && npm i @rollup/rollup-linux-x64-gnu
4642

.github/workflows/e2e-tests.yml

-118
This file was deleted.

.github/workflows/integration.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
tags:
8+
- "v*"
9+
jobs:
10+
integrate-revision:
11+
if: github.ref == 'refs/heads/main'
12+
name: Integrate revision
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Dispatch integration
17+
uses: peter-evans/repository-dispatch@v3
18+
with:
19+
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
20+
repository: input-output-hk/identus-integration
21+
event-type: integration
22+
client-payload: '{"component": "sdk-ts", "release": false, "version": "${{ github.sha }}" }'
23+
24+
integrate-release:
25+
if: startsWith(github.ref, 'refs/tags/v')
26+
name: Integrate release
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Get tag
31+
id: tag
32+
run: echo "name=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
33+
34+
- name: Dispatch integration
35+
uses: peter-evans/repository-dispatch@v3
36+
with:
37+
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
38+
repository: input-output-hk/identus-integration
39+
event-type: integration
40+
client-payload: '{"component": "sdk-ts", "release": true, "version": "${{ steps.tag.outputs.name }}" }'

.github/workflows/release.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
name: Release wallet-sdk-ts
22

33
on:
4-
workflow_call:
5-
inputs:
6-
release_candidate:
7-
description: 'Release candidate'
8-
default: true
9-
required: true
10-
type: boolean
114
workflow_dispatch:
12-
inputs:
13-
release_candidate:
14-
description: 'Release candidate'
15-
default: true
16-
required: true
17-
type: boolean
5+
186
jobs:
197
release:
208
runs-on: ubuntu-latest
@@ -62,4 +50,4 @@ jobs:
6250
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
6351
run: |
6452
npm install
65-
npx semantic-release -e ./release.config.js
53+
npx semantic-release

0 commit comments

Comments
 (0)