-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (58 loc) · 1.7 KB
/
ci.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
workflow_dispatch:
workflow_call:
push:
paths:
- 'cli/**'
- 'runtime/**'
- 'demo-apps/**'
- 'package.json'
- 'yarn.lock'
- 'release.config.js'
- '.github/workflows/ci.yml'
branches:
- '*'
- '**'
- '!master'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
jobs:
CI:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
packages: write
contents: write
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- uses: styfle/[email protected]
with:
workflow_id: ci.yml
access_token: ${{ github.token }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 30
- uses: FranzDiebold/github-env-vars-action@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Yarn
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
yarn install --frozen-lockfile --ignore-scripts
yarn buildall
yarn test
- name: Build and Test Demo APP
run: |
./demo-apps/build-and-test.sh
- name: Release
if: github.ref == 'refs/heads/develop'
run: |
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits @semantic-release/exec
semantic-release --no-ci --debug
./publish.sh $CI_REF_NAME