-
-
Notifications
You must be signed in to change notification settings - Fork 307
36 lines (36 loc) · 1.18 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
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@v3
with:
fetch-depth: 2
- name: Git config user
uses: snow-actions/[email protected]
with:
name: # Service Account's Name
email: # Service Account's Email Address
- uses: actions/setup-node@v3
with:
node-version: 16
- 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 --production
- 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