-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.4 KB
/
workflow.yaml
File metadata and controls
45 lines (38 loc) · 1.4 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
name: CI
on:
push:
branches:
- main
- renovate/**
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
prettier-format-check:
name: Format Check
uses: bymbly/gha-workflows/.github/workflows/prettier-format-check.yaml@7134d8d3ea59ee316a4f933c94e3f757052335aa # main
markdown-lint-check:
name: Lint Check
uses: bymbly/gha-workflows/.github/workflows/markdown-lint-check.yaml@7134d8d3ea59ee316a4f933c94e3f757052335aa # main
eslint-lint-check:
name: ESLint Check
uses: bymbly/gha-workflows/.github/workflows/eslint-lint-check.yaml@7134d8d3ea59ee316a4f933c94e3f757052335aa # main
npm-test:
name: npm Test
uses: bymbly/gha-workflows/.github/workflows/npm-test.yaml@7134d8d3ea59ee316a4f933c94e3f757052335aa # main
publish-npm-package:
name: Publish NPM Package
needs:
[prettier-format-check, markdown-lint-check, eslint-lint-check, npm-test]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
permissions:
contents: write
packages: write
issues: write
pull-requests: write
id-token: write # required for OIDC publishing
uses: bymbly/gha-workflows/.github/workflows/npm-semantic-release.yaml@7134d8d3ea59ee316a4f933c94e3f757052335aa # main
with:
registry-url: "https://registry.npmjs.org/"