-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from tiktok/release-setup
Release setup
- Loading branch information
Showing
6 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: CI | ||
name: Build and Test | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ['main'] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ['main'] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -14,8 +14,8 @@ jobs: | |
- name: Git config user | ||
uses: snow-actions/[email protected] | ||
with: | ||
name: # Service Account's Name | ||
email: # Service Account's Email Address | ||
name: tiktokbot | ||
email: [email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
@@ -25,3 +25,5 @@ jobs: | |
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 test | ||
run: node common/scripts/install-run-rush.js test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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/[email protected] | ||
with: | ||
name: tiktokbot | ||
email: [email protected] | ||
- 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 --version-policy sparo --target-branch ${{ github.ref_name }} | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters