-
-
Notifications
You must be signed in to change notification settings - Fork 333
40 lines (39 loc) · 1.12 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Nightly
on:
schedule:
- cron: 00 23 * * *
permissions:
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@v4
with:
ref: develop
- uses: actions/setup-node@v4
with:
node-version: 18
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