tiktok-sparo/.github/workflows/publish.yaml

30 lines
1.2 KiB
YAML
Raw Normal View History

2024-02-21 17:10:38 -05:00
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 }}
- uses: actions/setup-node@v3
with:
node-version: 18
2024-02-21 19:16:40 -05:00
- name: git config email
run: git config --local user.email tiktokbot@users.noreply.github.com
- name: git config name
run: git config --local user.name tiktokbot
2024-02-21 17:10:38 -05:00
- 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
2024-02-23 23:05:45 -05:00
- name: 'Rush version (Policy: sparo)'
run: node common/scripts/install-run-rush.js version --bump --version-policy sparo --target-branch ${{ github.ref_name }}
2024-02-21 17:10:38 -05:00
- name: Rush publish
2024-02-21 19:30:52 -05:00
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch ${{ github.ref_name }}
2024-02-21 17:10:38 -05:00
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}