-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (34 loc) · 972 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
37
38
name: main
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Build and test
steps:
- uses: actions/checkout@v4
- uses: cypress-io/github-action@v5
test-esbuild:
runs-on: ubuntu-latest
name: Build and test
steps:
- uses: actions/checkout@v4
- uses: cypress-io/github-action@v5
with:
config-file: cypress-esbuild.config.js
release:
needs: [test, test-esbuild]
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
- name: Install only the semantic release 📦
run: npm install semantic-release
# https://github.com/cycjimmy/semantic-release-action
- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v3
with:
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}