wishthis/node_modules/fomantic-ui/.github/workflows/nightly.yml
2022-04-07 09:06:43 +02:00

37 lines
1.1 KiB
YAML

name: Nightly
on:
schedule:
- cron: 00 23 * * *
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@v2
with:
ref: develop
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- 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
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --tag nightly