-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.11 KB
/
master.yml
File metadata and controls
47 lines (42 loc) · 1.11 KB
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
name: Master build
# trigger on push to master
on:
push:
branches:
- master
workflow_dispatch:
jobs:
relase:
name: Release
runs-on: ubuntu-latest
permissions:
contents: 'write'
pull-requests: 'write'
steps:
- uses: actions/checkout@v3
id: checkout
with:
fetch-depth: 0
- uses: actions/setup-node@v3
id: setup-node
- name: Install dependencies
run: npm install
- name: Install jest
run: npm install -g jest
- name: Build
run: npm run build
- name: Publish to Kapeta
id: kapeta-registry-push
uses: kapetacom/core-registry-action@v4
with:
credentials: ${{ secrets.KAPETA_TOKEN_STAGING }}
staging: true
base_url: ${{ secrets.KAPETA_STAGING_URL }}
action: publish
- name: slack - GitHub Actions Slack integration
uses: act10ns/slack@v2.0.0
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#github-actions'