-
Notifications
You must be signed in to change notification settings - Fork 81
49 lines (40 loc) · 1.29 KB
/
conventional-pr-name.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
name: Linting (Commitlint)
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
permissions:
contents: read
packages: read
jobs:
lint:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '20.5'
cache: 'yarn'
registry-url: "https://npm.pkg.github.com"
- name: Set yarn version
run: |
yarn set version stable
yarn set version 3.6.4
- name: Setup .yarnrc.yml
run: |
yarn config set nodeLinker node-modules
yarn config set npmScopes.plentymarkets.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.plentymarkets.npmAlwaysAuth true
yarn config set npmScopes.plentymarkets.npmAuthToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create .env file
run: touch apps/web/.env
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Validate PR title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint