-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 1.08 KB
/
master_build.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
name: Build and publish (master)
on:
push:
branches: [ master ]
jobs:
versioning:
runs-on: ubuntu-latest
outputs:
outputs1: ${{ steps.versioning.outputs.version }}
outputs2: ${{ steps.versioning.outputs.published }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Semantic Release (install node.js)
uses: actions/setup-node@v4
with:
node-version: 18
- name: Semantic Release (install dependencies)
run: |
npm install --global yarn
yarn install
- name: Semantic Release (process changes)
uses: cycjimmy/semantic-release-action@v4.0.0
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
- name: Move results to outputs
id: versioning
run: |
echo "version=${{ steps.semantic.outputs.new_release_version }}" >> $GITHUB_OUTPUT
echo "published=${{ steps.semantic.outputs.new_release_published }}" >> $GITHUB_OUTPUT
#TODO: trigger installation with version number