-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (31 loc) · 923 Bytes
/
main.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
name: Main
on:
push:
paths-ignore:
- '**/*.md'
- '**/*.code-*'
- '.vscode/**'
- '.devcontainer.json'
workflow_dispatch:
jobs:
test:
uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-javascript-code.yaml@main
secrets: inherit
with:
# Cannot be set with an env var. Value must match in the release job.
node-version: 18
release:
needs: [test]
concurrency: release
runs-on: ubuntu-latest
# Release if:
# - the repo's owner is Ocado Tech.
# - a change is made to the default branch.
if: |
github.repository_owner_id == 2088731 &&
github.ref_name == github.event.repository.default_branch
steps:
- name: 🚀 Publish Semantic Release
uses: ocadotechnology/codeforlife-workspace/.github/actions/github/release@main
with:
cfl-bot-gh-token: ${{ secrets.CFL_BOT_GH_TOKEN }}