-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.66 KB
/
on_master.yaml
File metadata and controls
58 lines (51 loc) · 1.66 KB
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
name: CI (master)
on:
push:
branches:
- master
tags-ignore:
- '**'
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: read
actions: write
jobs:
code_checks:
name: Code checks
uses: ./.github/workflows/_check_code.yaml
tests:
if: "!startsWith(github.event.head_commit.message, 'docs')"
name: Tests
uses: ./.github/workflows/_tests.yaml
release_metadata:
if: >-
startsWith(github.event.head_commit.message, 'feat') ||
startsWith(github.event.head_commit.message, 'fix') ||
startsWith(github.event.head_commit.message, 'perf') ||
startsWith(github.event.head_commit.message, 'refactor') ||
startsWith(github.event.head_commit.message, 'chore') ||
startsWith(github.event.head_commit.message, 'style')
name: Update pre-release metadata
needs: [code_checks, tests]
permissions:
contents: write
uses: ./.github/workflows/_update_release_metadata.yaml
secrets: inherit
with:
release_type: prerelease
npm_publish:
name: NPM publish
needs: [release_metadata]
runs-on: ubuntu-latest
steps:
- name: Execute publish workflow
uses: apify/workflows/execute-workflow@main
with:
workflow: manual_publish_to_npm.yaml
inputs: >
{
"ref": "${{ needs.release_metadata.outputs.changelog_commitish }}",
"tag": "beta"
}