-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 968 Bytes
/
ci.yaml
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
# Runs various checks against any new code.
# Creates a GitHub release named nightly, for the sake of testing in external projects.
name: Check
on:
push:
branches:
- '*'
paths-ignore:
- '*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 18
# 'registry-url' is required for 'npm publish'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run check
- run: npm run build
- run: npm run schema && git diff --exit-code tests/schema.ts
- run: npm test
- run: npm pack
- run: git tag -f nightly
- run: git push -f origin nightly
- uses: ncipollo/[email protected]
with:
artifacts: '*.tgz'
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
name: nightly
tag: nightly