chore(release): 4.126.0 #1071
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
if: ${{ startsWith(github.event.head_commit.message, 'chore(release):') }} | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: node_modules | |
key: ${{ hashFiles('yarn.lock') }} | |
- if: ${{ steps.cache.outputs.cache-hit != 'true' }} | |
run: yarn --frozen-lockfile | |
- run: | | |
rm -rf node_modules/.cache | |
npm run build | |
npm run test-with-coverage | |
if $IS_BETA; then | |
npm run publish-package-next | |
else | |
npm run publish-package | |
fi | |
npx --package=tbify tsync vtils | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
IS_BETA: ${{ contains(github.event.head_commit.message, 'beta') }} | |
# - uses: JamesIves/github-pages-deploy-action@releases/v3 | |
# with: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# BRANCH: gh-pages | |
# FOLDER: docs/dist | |
# TARGET_FOLDER: v4 | |
- uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: coverage/lcov-report | |
TARGET_FOLDER: v4-coverage |