-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (51 loc) · 1.51 KB
/
release.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
name: 'Release'
on:
push:
branches:
- develop
- main
jobs:
release:
name: 'Publish new version'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-server-sdk.yml@v1
with:
language: php
language-version: '7.3'
prepare-command: |
composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
secrets:
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
name: Release
on:
push:
branches:
- main
- develop
jobs:
release:
name: Release Version
runs-on: "ubuntu-latest"
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '11'
- uses: shivammathur/setup-php@v2
with:
php-version: "7.3"
coverage: none
tools: composer:v2
- name: Install Composer Dependencies
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
- name: Install Yarn dependencies
run: yarn install --cwd=release
- name: Release
run: ./release/node_modules/.bin/semantic-release --extends ./release/.releaserc.js
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
HUSKY: 0