-
Notifications
You must be signed in to change notification settings - Fork 37
40 lines (33 loc) · 1.03 KB
/
deploy-presence.yml
File metadata and controls
40 lines (33 loc) · 1.03 KB
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
name: Deploy Presence App
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
deploy:
name: 🚀 Deploy to PartyKit
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.repository == 'epicweb-dev/epicshop' }}
permissions:
contents: read
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v5
- name: ⎔ Setup node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 🏗 Build workshop-presence
run: npx nx run @epic-web/workshop-presence:build
- name: 🚀 Deploy to PartyKit
run: npm run deploy --workspace=@epic-web/workshop-presence
env:
PARTYKIT_LOGIN: ${{ secrets.PARTYKIT_LOGIN }}
PARTYKIT_TOKEN: ${{ secrets.PARTYKIT_TOKEN }}