-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.13 KB
/
CI_merge.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
name: CI
on:
push:
branches: [ master, prerelease ]
jobs:
Publish:
if: "!contains(github.event.head_commit.message, '[skip ci]') && ${{ github.ref == 'refs/heads/master' }}"
runs-on: ubuntu-latest
environment: deploy
steps:
- uses: actions/checkout@v3
with:
token: ${{secrets.GH_USER_TOKEN}}
- name: Configure Node 18
uses: actions/setup-node@v3
- name: Bootstrap
run: npm run bootstrap:ci
# Fails the build if the working tree is dirty
# which happens when you don't update the API docs in line
# with the tsdoc comments
- name: Check working tree
run: test -z "$(git status --porcelain)"
- name: Lint
run: npm run lint:eslint:all
- name: Test
run: npm run test
- name: Analyze
run: npm run lsp:analyze:all
- name: "NPM Identity"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Release
env:
GH_TOKEN: ${{secrets.GH_USER_TOKEN}}
run: npm run release