-
-
Notifications
You must be signed in to change notification settings - Fork 308
38 lines (38 loc) · 1.22 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
name: CI
on:
push:
branches: [ "main", "v5" ]
pull_request:
branches: [ "main", "v5" ]
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
USE_SSH: true
GIT_USER: petyosi
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: recursive
token: ${{ secrets.SUBMODULE_TOKEN }}
- name: Git config user
uses: snow-actions/[email protected]
with:
name: Virtuoso CI
email: [email protected]
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Rush rebuild
run: node common/scripts/install-run-rush.js rebuild --verbose
- name: Rush publish
run: node common/scripts/install-run-rush.js publish --apply --target-branch v5 --publish --registry https://registry.npmjs.org/ --npm-auth-token "$NPM_TOKEN" --add-commit-details