-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (29 loc) · 978 Bytes
/
publish.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
name: Publish NPM Packages
on:
workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
token: ${{ secrets.BOT_ACCESS_TOKEN }}
- name: Git config user
uses: snow-actions/git-config-user@v1.0.0
with:
name: tiktokbot
email: tiktokbot@users.noreply.github.com
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Rush build
run: node common/scripts/install-run-rush.js build --verbose --production
- name: Rush test
run: node common/scripts/install-run-rush.js test --verbose
- name: Rush publish
run: node common/scripts/install-run-rush.js publish --apply --publish --target-branch ${{ github.ref_name }}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}