2022-01-13 13:00:31 +00:00
|
|
|
name: Nightly
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: 00 23 * * *
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: Build nightly distribution
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'fomantic/Fomantic-UI'
|
|
|
|
steps:
|
2022-05-29 09:24:36 +00:00
|
|
|
- uses: actions/checkout@v1
|
2022-01-13 13:00:31 +00:00
|
|
|
with:
|
|
|
|
ref: develop
|
2022-05-29 09:24:36 +00:00
|
|
|
- uses: actions/setup-node@v1
|
2022-01-13 13:00:31 +00:00
|
|
|
with:
|
2022-05-29 09:24:36 +00:00
|
|
|
node-version: 12
|
2022-01-13 13:00:31 +00:00
|
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- name: pre-setup
|
|
|
|
run: sh ./scripts/preinstall.sh
|
|
|
|
- name: install dependencies
|
2022-05-29 09:24:36 +00:00
|
|
|
run: npm install --ignore-scripts
|
2022-01-13 13:00:31 +00:00
|
|
|
- name: update nightly version
|
|
|
|
run: node ./scripts/nightly-version.js
|
|
|
|
- name: fomantic install & build
|
2022-05-29 09:24:36 +00:00
|
|
|
run: npx gulp install
|
2022-01-13 13:00:31 +00:00
|
|
|
- name: publish to npm
|
|
|
|
run: |
|
|
|
|
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
|
|
npm publish --tag nightly
|
2022-05-29 09:24:36 +00:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
|
|
|
CI: true
|