-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.39 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
38
39
40
41
42
43
44
45
46
47
48
name: '@lambda-func CI/CD'
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: https://registry.npmjs.org/
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Rush Build
run: node common/scripts/install-run-rush.js build
- name: Rush Lint
run: node common/scripts/install-run-rush.js lint
- name: Rush Test
run: node common/scripts/install-run-rush.js test
# - name: Commit Dist
# if: ${{ github.ref == 'refs/heads/main' }}
# run: |
# git config user.name github-actions
# git config user.email [email protected]
# git commit -a -m 'built packages [ci]' --no-verify || echo "No changes to commit"
# git push --no-verify
# # Can't be in a separate job as we need the results of any build to be included in
# # any published module.
# - name: Publish
# if: ${{ github.ref == 'refs/heads/main' }}
# run: node common/scripts/install-run-rush.js publish -p -b main --include-all --set-access-level=public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}