-
Notifications
You must be signed in to change notification settings - Fork 110
37 lines (34 loc) · 1.11 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
35
36
37
name: Docs
on:
push:
branches:
- 'publish'
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://[email protected]/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! [email protected]: 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://[email protected]/
- run: npm ci
- run: npm run build
- run: npm run lint