-
Notifications
You must be signed in to change notification settings - Fork 53
39 lines (35 loc) · 1.41 KB
/
Copy pathpre_release_next_major.yaml
File metadata and controls
39 lines (35 loc) · 1.41 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
name: Create a next major pre-release
on:
# Push to v3 will deploy a beta version of the next major (3.0.0-beta.N)
# under the next-v3 dist-tag. Unlike the pre-releases from master, this
# produces no changelog and no commit on the branch.
push:
branches:
- v3
tags-ignore:
- '**' # Ignore all tags to prevent duplicate builds when tags are pushed.
concurrency:
group: release
cancel-in-progress: false
jobs:
wait_for_checks:
if: "!startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci') && startsWith(github.repository, 'apify/')"
name: Wait for code checks to pass
runs-on: ubuntu-latest
steps:
- uses: lewagon/wait-on-check-action@369769072fe522a3a8a85c03c96af1e5242a1994 # v1.9.1
with:
ref: ${{ github.ref }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-regexp: (Build & Test .*|Lint|Docs build)
wait-interval: 5
publish_to_npm:
needs: [wait_for_checks]
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Execute publish workflow
uses: apify/actions/execute-workflow@v1.4.1
with:
workflow: publish_to_npm.yaml
inputs: '{ "ref": "${{ github.sha }}", "tag": "next-v3" }'