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:
parent
181f198260
commit
a87ea72980
2 changed files with 36 additions and 0 deletions
35
.github/workflows/deploy-dev.yml
vendored
Normal file
35
.github/workflows/deploy-dev.yml
vendored
Normal 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
|
|
@ -2,6 +2,7 @@
|
|||
"name": "root",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"lerna": "lerna",
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"prepare": "husky install && lerna run --stream prepack",
|
||||
|
|
Loading…
Reference in a new issue