-
Notifications
You must be signed in to change notification settings - Fork 49
46 lines (36 loc) · 1.27 KB
/
alpha-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
35
36
37
38
39
40
41
42
43
44
45
46
name: Alpha release & deploy
# Controls when the action will run.
on:
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
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@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
scope: ignt
- name: Build
run: npm run build
- name: Publish
run: npm run alpha
env:
NODE_AUTH_TOKEN: ${{secrets.sp_npm_token}}
- name: Install Ignite CLI
run: 'curl https://get.ignite.com/cli! | bash'
- name: Install alpha
run: lerna exec --scope='@starport/template' -- npm i @starport/vue@alpha @starport/vuex@alpha
- name: Build
run: npm run build
- name: Deploy
uses: netlify/actions/cli@master
with:
args: deploy --alias 'alpha'
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}