Skip to content

Update release.yaml (#66) #38

Update release.yaml (#66)

Update release.yaml (#66) #38

Workflow file for this run

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/checkout@v4.1.1
- name: Setup node.js
uses: actions/setup-node@v4.0.0
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 }}