-
Notifications
You must be signed in to change notification settings - Fork 109
34 lines (31 loc) · 1.07 KB
/
ci.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
name: Docs
on:
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js 14
uses: actions/setup-node@v3
with:
node-version: '14'
# remind: workaround to use http instead of git
# otherwise, the following error is thrown when installing dependencies:
# npm ERR! Error while executing:
# npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/Mogztter/asciidoc-cypher-query-runner.git
# npm ERR!
# npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts.
# npm ERR! git@github.com: Permission denied (publickey).
# npm ERR! fatal: Could not read from remote repository.
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- run: npm ci
- run: npm run build
- run: npm run lint