-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.27 KB
/
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
39
40
41
42
43
44
45
46
name: main
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
suite: [ 'jest' ]
steps:
- uses: actions/checkout@v3
- name: Test Package
uses: dmeents/maestro/src/github-actions/test-standard@main
env:
NPM_AUTH_IDENT: ${{ secrets.NPM_AUTH_IDENT }}
NPM_TOKEN: ${{ inputs.npmToken }}
with:
testSuite: ${{ matrix.suite }}
npmToken: ${{ secrets.NPM_TOKEN }}
codeCovSecret: ${{ secrets.CODECOV_TOKEN }}
build:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v3
- name: Build semantic-release-yarn
uses: dmeents/maestro/src/github-actions/build-standard@main
with:
packageName: semantic-release-yarn
publish:
runs-on: ubuntu-latest
needs: [ build ]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Get latest code
run: git pull origin main
- name: Release @dmeents/semantic-release-yarn
uses: dmeents/maestro/src/github-actions/release-standard@main
with:
packageName: semantic-release-yarn
npmToken: ${{ secrets.NPM_TOKEN }}
githubToken: ${{ secrets.GH_TOKEN }}