forked from doublesymmetry/react-native-track-player
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 862 Bytes
/
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
name: nightly
on:
workflow_dispatch:
schedule:
# run job at 00:00:00 UTC
- cron: '0 0 * * *'
jobs:
nightly_build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build Library
run: yarn build
- name: Extract Version
run: echo "LIB_VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
- name: Set Nightly Version
run: yarn version --no-git-tag-version --no-commit-hooks --new-version ${{ env.LIB_VERSION }}-nightly-${{ github.sha }}
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: nightly