Updated README.md for better understanding (#46) #24
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 | |
on: | |
workflow_dispatch: | |
# Instead of running every night we run | |
# Once for every commit in main as the traffic on this repo | |
# is lower than facebook/react-native. | |
push: | |
branches: | |
- main | |
jobs: | |
publish_template_as_nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Update versions to nightly | |
run: node ./scripts/updateTemplateVersion.js nightly | |
- name: Update template/package.json to nightly react-native + @react-native | |
run: node ./scripts/updateReactNativeVersion.js nightly | |
- name: Publish NPM as Nightly | |
run: npm publish --tag nightly | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |