-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (38 loc) · 1018 Bytes
/
ci.yml
File metadata and controls
41 lines (38 loc) · 1018 Bytes
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
---
name: CI
on:
push:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
# Clojure needed for bb step
- name: Set up Clojure
uses: DeLaGuardo/setup-clojure@13.5
with:
cli: '1.11.1.1413'
bb: '1.12.215'
- name: Build release
run: bb release
- name: Run feature tests
run: bb test
- name: Authenticate with registry
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Publish package if a release tag
run: NBB_CLI_NAME=nbb-logseq NBB_NPM_LIB_NAME='@logseq/nbb-logseq' bb ci:publish