-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (33 loc) · 914 Bytes
/
cd.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: Continuous Delivery
on:
schedule:
- cron: '30 2 * * 3'
workflow_dispatch:
jobs:
publish:
name: Publish package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Restore Node.js modules
id: cache-node-modules
uses: actions/cache@v3.0.9
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
run: yarn install
- name: Release
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}