Publish Nightly Release #1431
This file contains hidden or 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
| on: | |
| workflow_dispatch: | |
| inputs: | |
| buildAllPackages: | |
| type: boolean | |
| required: false | |
| schedule: | |
| - cron: "0 0 * * *" | |
| name: Publish Nightly Release | |
| permissions: | |
| contents: read | |
| env: | |
| NPM_LUI_AUTH_TOKEN: ${{ secrets.NPM_LUI_AUTH_TOKEN }} | |
| jobs: | |
| prepare: | |
| uses: ./.github/workflows/prepare.yml | |
| secrets: inherit | |
| permissions: | |
| actions: write | |
| contents: read | |
| with: | |
| buildcache_key: buildcache-nightly-${{ github.ref }} | |
| publish: | |
| runs-on: ubuntu-latest | |
| needs: prepare | |
| if: github.repository == 'luigi-project/luigi' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: '24.x' | |
| - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 | |
| 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 |