Skip to content

Publish Nightly Release #717

Publish Nightly Release

Publish Nightly Release #717

on:
workflow_dispatch:
inputs:
buildAllPackages:
type: boolean
required: false
schedule:
- cron: "0 0 * * *"
name: Publish Nightly Release
env:
NPM_LUI_AUTH_TOKEN: ${{ secrets.NPM_LUI_AUTH_TOKEN }}
jobs:
prepare:
uses: ./.github/workflows/prepare.yml
secrets: inherit
with:
buildcache_key: buildcache-nightly-${{ github.ref }}
publish:
runs-on: ubuntu-latest
needs: prepare
if: github.repository == 'SAP/luigi'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.14.0'
- uses: actions/cache@v4
with:
path: |
~/tmp_build
~/cypress-binary-cache
key: buildcache-nightly-${{ github.ref }}
- run: cp -r ~/tmp_build/* .
- run: echo "//registry.npmjs.org/:_authToken=$NPM_LUI_AUTH_TOKEN" > ~/.npmrc
- run: cd ./scripts && npm ci
- run: cd ./scripts && NIGHTLY=true npm run release
- run: cd ./scripts && npm run publish:nightly
- run: echo "" > ~/.npmrc