1 | name: Nightly
|
2 | on:
|
3 | schedule:
|
4 | - cron: 00 23 * * *
|
5 | jobs:
|
6 | publish:
|
7 | name: Build nightly distribution
|
8 | runs-on: ubuntu-latest
|
9 | if: github.repository == 'fomantic/Fomantic-UI'
|
10 | steps:
|
11 | - uses: actions/checkout@v1
|
12 | with:
|
13 | ref: develop
|
14 | - uses: actions/setup-node@v1
|
15 | with:
|
16 | node-version: 12
|
17 | registry-url: https://registry.npmjs.org/
|
18 | - name: pre-setup
|
19 | run: sh ./scripts/preinstall.sh
|
20 | - name: install dependencies
|
21 | run: npm install --ignore-scripts
|
22 | - name: update nightly version
|
23 | run: node ./scripts/nightly-version.js
|
24 | - name: fomantic install & build
|
25 | run: npx gulp install
|
26 | - name: publish to npm
|
27 | run: |
|
28 | npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
29 | npm publish --tag nightly
|
30 | env:
|
31 | NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
32 | CI: true
|