wishthis/node_modules/fomantic-ui/.github/workflows/nightly.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2022-01-13 13:00:31 +00:00
name: Nightly
on:
schedule:
- cron: 00 23 * * *
2022-06-08 10:36:39 +00:00
permissions:
contents: read
2022-01-13 13:00:31 +00:00
jobs:
publish:
name: Build nightly distribution
runs-on: ubuntu-latest
if: github.repository == 'fomantic/Fomantic-UI'
2022-06-08 10:36:39 +00:00
outputs:
shouldPublish: ${{ steps.nightly-version.outputs.shouldPublish }}
2022-01-13 13:00:31 +00:00
steps:
2022-06-08 10:36:39 +00:00
- uses: actions/checkout@v3
2022-01-13 13:00:31 +00:00
with:
ref: develop
2022-06-08 10:36:39 +00:00
- uses: actions/setup-node@v3
2022-01-13 13:00:31 +00:00
with:
2022-06-08 10:36:39 +00:00
node-version: 16
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-06-08 10:36:39 +00:00
run: yarn
2022-01-13 13:00:31 +00:00
- name: update nightly version
2022-06-08 10:36:39 +00:00
id: nightly-version
2022-01-13 13:00:31 +00:00
run: node ./scripts/nightly-version.js
- name: fomantic install & build
2022-06-08 10:36:39 +00:00
if: ${{ steps.nightly-version.outputs.shouldPublish == 'yes' }}
run: yarn gulp install
2022-01-13 13:00:31 +00:00
- name: publish to npm
2022-06-08 10:36:39 +00:00
if: ${{ steps.nightly-version.outputs.shouldPublish == 'yes' }}
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }}
2022-01-13 13:00:31 +00:00
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --tag nightly