-
Notifications
You must be signed in to change notification settings - Fork 24
36 lines (33 loc) · 975 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
35
36
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:
node-version: 18
release:
needs: [test]
concurrency: release
runs-on: ubuntu-latest
permissions:
id-token: write # to enable use of OIDC for npm provenance
# 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 }}
npm-token: ${{ secrets.NPM_TOKEN }}