-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.27 KB
/
node.yml
File metadata and controls
44 lines (39 loc) · 1.27 KB
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
name: Node
# only run this manually since we rarely change the nodejs stuff, avoid eating credits
on: workflow_dispatch
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "lts/*"
# TODO: cache doesn't support rush
cache-dependency-path: examples/stack/svc2/common/config/rush/pnpm-lock.yaml
- name: "svc2: Rush Install"
run: node common/scripts/install-run-rush.js install
working-directory: examples/stack/svc2
- name: "svc2: Rush Build"
run: node common/scripts/install-run-rush.js build --verbose
working-directory: examples/stack/svc2
- name: "svc2: Rush Deploy"
run: node common/scripts/install-run-rush.js deploy
working-directory: examples/stack/svc2
- name: "svc2: Build Docker Image"
uses: docker/build-push-action@v7
with:
context: examples/stack/svc2/common/deploy/
file: examples/stack/svc2/app/Dockerfile
load: true
push: false