-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.71 KB
/
release-develop.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
name: Release version develop
on:
push:
branches: [ develop ]
jobs:
release:
if: "!startsWith(github.event.head_commit.message, 'chore(release')"
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-
- name: Run yarn Install
run: yarn install
- name: bump
run: yarn npm:release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.G_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# deploy:
# needs: release
# if: "!startsWith(github.event.head_commit.message, 'chore(release')"
# runs-on: ubuntu-latest
# steps:
# - name: Checkout project
# uses: actions/checkout@v2
# - shell: bash
# run: echo 'CERFA_HEAD_REF=${{ github.head_ref }}' >> $GITHUB_ENV
# - shell: bash
# run: echo 'CERFA_REF=${{ github.ref }}' >> $GITHUB_ENV
# - name: Check output
# run: echo ${CERFA_REF:-${CERFA_REF##*/}}
# - name: Request deployment recette
# uses: peter-evans/repository-dispatch@v1
# with:
# repository: mission-apprentissage/CERFA-infra
# token: ${{ secrets.DEVOPS_ACCESS_TOKEN }}
# event-type: deploy
# client-payload: '{"envName": "recette", "branchName":"develop"}'
# if: github.ref == 'refs/heads/develop'