-
-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) · 1.29 KB
/
deploy-main.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
41
42
43
44
# This is a basic workflow to help you get started with Actions
name: PROD CI
# Controls when the workflow will run
on:
push:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Prepare
run: npm run prepare:ci -- ${{ github.ref }}
# Install dependencies
- name: Install
run: npm install
# Build package
- name: Build
run: npm run build
- name: NPM Publish to github package repo
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
registry: https://registry.npmjs.org/
# access level for scoped packages -- by 1.0.0 we may unscope from @oslabs-beta
access: restricted
# just see if it works -- don't actually publish
dry-run: true
# only run if published version number differs from the one in package.json
check-version: true