Nightly Release Branch #48
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: Nightly Release Branch | |
on: | |
schedule: | |
# Run daily at 2:30am UTC | |
- cron: '30 2 * * 1-5' | |
jobs: | |
release: | |
# prevents this action from running on forks | |
if: github.repository_owner == 'facebook' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.SSH_KEY }} | |
fetch-depth: 0 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: | | |
git config user.name "Lexical GitHub Actions Bot" | |
git config user.email "<>" | |
- run: npm install | |
- run: npm run increment-version -- --i prerelease | |
- run: git push -u [email protected]:facebook/lexical.git --follow-tags |