-
-
Notifications
You must be signed in to change notification settings - Fork 500
37 lines (34 loc) · 926 Bytes
/
auri.yaml
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
name: "Auri"
on:
push:
branches:
- main
env:
AURI_GITHUB_TOKEN: ${{secrets.AURI_GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
VERCEL_DEPLOY_HOOK: ${{secrets.VERCEL_DEPLOY_HOOK}}
VERCEL_PREVIEW_DEPLOY_HOOK: ${{secrets.VERCEL_PREVIEW_DEPLOY_HOOK}}
jobs:
auri:
runs-on: ubuntu-latest
steps:
- name: setup actions
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org
- name: install dependencies
run: |
npm i -g pnpm
pnpm install --no-frozen-lockfile
- name: publish
run: pnpm exec auri publish
- name: prepare
run: pnpm exec auri prepare
publish-preview:
runs-on: ubuntu-latest
steps:
- name: publish preview
run: curl ${{env.VERCEL_PREVIEW_DEPLOY_HOOK}}