Nightly #2219
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
| name: Nightly | |
| on: | |
| schedule: | |
| - cron: 00 23 * * * | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| publish: | |
| name: Build nightly distribution | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'fomantic/Fomantic-UI' | |
| outputs: | |
| shouldPublish: ${{ steps.nightly-version.outputs.shouldPublish }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: develop | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| # Ensure npm 11.5.1 or later is installed | |
| - name: Update npm | |
| run: npm install -g npm@latest | |
| - name: pre-setup | |
| run: sh ./scripts/preinstall.sh | |
| - name: install dependencies | |
| run: yarn | |
| - name: update nightly version | |
| id: nightly-version | |
| run: node ./scripts/nightly-version.js | |
| - name: fomantic install & build | |
| if: ${{ steps.nightly-version.outputs.shouldPublish == 'yes' }} | |
| run: yarn gulp install | |
| - name: publish to npm | |
| if: ${{ steps.nightly-version.outputs.shouldPublish == 'yes' }} | |
| env: | |
| CI: true | |
| run: | | |
| npm publish --tag nightly |