-
Notifications
You must be signed in to change notification settings - Fork 25
62 lines (51 loc) · 1.46 KB
/
push.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
62
name: 'Release new version'
on:
push:
branches:
- main
workflow_dispatch: ~
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: 'Build and publish 🚀'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.GH_REPO_TOKEN }}
# TODO: Switch to v3 with app credentials when GitHub apps are allowed to bypass status checks. https://github.com/orgs/community/discussions/43460
- uses: myparcelnl/actions/setup-git-credentials@v2
with:
token: ${{ secrets.GH_REPO_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_REPO_TOKEN }}
- uses: myparcelnl/actions/yarn-install@v3
- uses: myparcelnl/actions/semantic-release@v3
with:
token: ${{ secrets.GH_REPO_TOKEN }}
rebase:
name: 'Rebase develop onto main'
needs: release
if: always()
uses: myparcelnl/magento/.github/workflows/rebase.yml@main
secrets: inherit
with:
base: main
target: develop
rebase-prs:
name: 'Rebase pull requests onto develop'
needs: rebase
runs-on: ubuntu-22.04
steps:
- uses: peter-evans/rebase@v2
with:
token: ${{ secrets.GH_REPO_TOKEN }}
base: develop
exclude-drafts: true
exclude-labels: 'hotfix'