-
-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (47 loc) · 1.3 KB
/
publish.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
47
48
49
50
51
52
53
54
name: Publish Development Build
on:
schedule:
- cron: '0 */12 * * *'
push:
branches:
- main
paths:
- '.github/workflows/publish.yml'
workflow_dispatch:
jobs:
npm:
name: npm
strategy:
fail-fast: false
matrix:
include:
- package: 'disploy'
folder: 'disploy'
- package: '@disploy/ws'
folder: 'ws'
- package: '@disploy/rest'
folder: 'rest'
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
if: github.repository_owner == 'Disploy'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: yarn
- name: Install dependencies
run: yarn --immutable
- name: Build dependencies
run: yarn build
- name: Publish package
run: |
yarn workspace ${{ matrix.package }} release --preid "dev.$(date +%s)-$(git rev-parse --short HEAD)"
yarn workspace ${{ matrix.package }} npm publish --tag dev || true
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}