Repository navigation
61 lines (53 loc) · 1.92 KB
/
Copy pathon_master.yaml
File metadata and controls
61 lines (53 loc) · 1.92 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
59
60
61
name: CI (master)
on:
push:
branches:
- master
tags-ignore:
- "**" # Ignore all tags to prevent duplicate builds when tags are pushed.
concurrency:
group: release
cancel-in-progress: false
jobs:
code_checks:
name: Code checks
uses: ./.github/workflows/_check_code.yaml
integration_tests:
name: Integration tests
uses: ./.github/workflows/_integration_tests.yaml
secrets:
APIFY_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }}
release_metadata:
# Skip this for "ci", "docs" and "test" commits
if: "!startsWith(github.event.head_commit.message, 'ci') && !startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'test')"
name: Update pre-release metadata
uses: ./.github/workflows/_update_release_metadata.yaml
secrets: inherit
with:
release_type: prerelease
publish_to_pkg_pr_new:
needs: [ release_metadata ]
name: Publish to pkg.pr.new
uses: ./.github/workflows/_publish_to_pkg_pr_new.yaml
with:
ref: ${{ needs.release_metadata.outputs.changelog_commitish }}
publish_to_npm:
name: Publish to NPM
needs: [ release_metadata ]
runs-on: ubuntu-latest
steps:
- name: Execute publish workflow
uses: apify/actions/execute-workflow@v1.1.2
with:
workflow: manual_publish_to_npm.yaml
inputs: >
{
"ref": "${{ needs.release_metadata.outputs.changelog_commitish }}",
"tag": "beta"
}
smoke_test:
name: Smoke test published package
needs: [ publish_to_npm ]
uses: ./.github/workflows/_smoke_test_npm_package.yaml
with:
npm_tag: beta