You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
629 B
27 lines
629 B
name: 'Nightly Releases'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 2-6'
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
publish:
|
|
name: 'Publish'
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'strapi/strapi'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup npmrc
|
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- run: yarn
|
|
- run: ./scripts/pre-publish.sh --yes
|
|
env:
|
|
VERSION: '0.0.0-next.${{ github.sha }}'
|
|
DIST_TAG: next
|