-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 1.01 KB
/
release.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
name: Release
on:
schedule:
- cron: "0 17 * * *" # run at 5:00 PM UTC
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node (latest)
uses: actions/setup-node@v1
with:
node_version: 12
- name: Install
run: yarn install --frozen-lockfile
- name: Prepare Npm
run: sh npm.sh
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
REGISTRY_URL: registry.npmjs.org
- name: Run
run: npm run build
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Github already has this token by default in repo
REGISTRY_URL: registry.npmjs.org
- name: GITHUB_RELEASE
run: node createGithubRelease.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Github already has this token by default in repo
REGISTRY_URL: registry.npmjs.org