This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
forked from Fjandin/config-man
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.68 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
47
48
49
50
51
52
53
54
name: Validate changes
on: push
jobs:
check:
name: 'Check, Lint, Test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
yarn --frozen-lockfile --ignore-engines --ignore-optional --non-interactive --silent --ignore-scripts --production=false
yarn peer
- name: TypeScript Check
run: yarn typecheck
- name: Lint
run: yarn lint
- name: Test
run: yarn test
release:
name: Release
runs-on: ubuntu-latest
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
needs: check
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install --frozen-lockfile
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_RELEASE_KEY }}
- name: Build
run: yarn build
- name: Release
run: |
npx --package=@auto-it/git-tag --package=@auto-it/omit-release-notes --package=auto -- auto shipit
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}