-
Notifications
You must be signed in to change notification settings - Fork 8
81 lines (73 loc) · 2.74 KB
/
weekly.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: ' 🌃️ Weekly'
on:
schedule:
# * is a special character in YAML so you have to quote this string
# ref: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '0 0 * * 1'
env:
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
jobs:
pull:
name: '👷️ CI'
if: github.ref == 'refs/heads/main'
timeout-minutes: 20
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: '🐙️ Checkout'
id: pull-checkout
uses: actions/checkout@v3
with:
fetch-depth: 100
- name: '💽️ Init'
id: weekly-init
uses: JeromeFitz/packages/.github/actions/init@main
- name: '📦 Install'
id: weekly-install
uses: JeromeFitz/packages/.github/actions/install@main
- name: '🔺️ Cache (turbo)'
id: pull-cache-turbo
uses: JeromeFitz/packages/.github/actions/cache-turbo@main
with:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: '🚨️ Lint'
id: weekly-lint
uses: JeromeFitz/packages/.github/actions/lint@main
with:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: '🏗️ Build'
id: weekly-build
uses: JeromeFitz/packages/.github/actions/build@main
with:
BUILD_COMMAND: 'build:all'
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- name: '🏷️ Release'
id: weekly-release
uses: JeromeFitz/packages/.github/actions/release@main
with:
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}