Publish NPM Packages #10
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
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 --target-branch ${{ github.ref_name }} | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |