-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.19 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
name: Release
on:
push:
branches:
- 'main'
jobs:
release:
runs-on: ubuntu-latest
if: >
(
startsWith(github.event.head_commit.message, 'feat') ||
startsWith(github.event.head_commit.message, 'fix') ||
startsWith(github.event.head_commit.message, 'refactor') ||
contains(github.event.head_commit.message, '!release')
)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
scope: sbb-esta
- name: 'Yarn: Install dependencies'
run: yarn install --frozen-lockfile --non-interactive
- name: 'Release: Set git user'
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Release
uses: ./.github/actions/release
with:
npm-token: ${{ secrets.NPM_TOKEN }}
aws-access-key-id: ${{ secrets.ICON_CDN_AWS_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.ICON_CDN_AWS_ACCESS_KEY }}
github-token: ${{ secrets.DISPATCH_TOKEN }}