0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: add deploy dev workflow

This commit is contained in:
Gao Sun 2021-07-30 22:34:15 +08:00
parent 181f198260
commit a87ea72980
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
2 changed files with 36 additions and 0 deletions

35
.github/workflows/deploy-dev.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Deploy Dev
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
- name: Build
run: pnpm -- lerna run build --stream

View file

@ -2,6 +2,7 @@
"name": "root", "name": "root",
"private": true, "private": true,
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm",
"lerna": "lerna", "lerna": "lerna",
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"prepare": "husky install && lerna run --stream prepack", "prepare": "husky install && lerna run --stream prepack",