Skip to content

Commit 1991fb9

Browse files
mjameswhbergundy
andauthored
chore: In-process verdaccio server (#861)
Co-authored-by: Roey Berman <roey@temporal.io>
1 parent 9790992 commit 1991fb9

File tree

11 files changed

+4185
-176
lines changed

11 files changed

+4185
-176
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@ jobs:
1717
matrix:
1818
node: [14, 16]
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
include:
21-
- os: ubuntu-latest
22-
node: 16
23-
docsTarget: true
2420
runs-on: ${{ matrix.os }}
2521
steps:
2622
- name: Print build information
27-
run: 'echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}, node: ${{ matrix.node }}, docsTarget: ${{ toJson(matrix.docsTarget) }}'
23+
run: 'echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}, node: ${{ matrix.node }}'
2824
- uses: actions/checkout@v2
2925
with:
3026
submodules: recursive
@@ -71,22 +67,39 @@ jobs:
7167
~/.npm/_logs/
7268
C:\npm\cache\_logs\
7369
70+
build-docs:
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v2
74+
with:
75+
submodules: recursive
76+
- uses: actions-rs/toolchain@v1
77+
with:
78+
toolchain: stable
79+
- uses: actions/setup-node@v1
80+
with:
81+
node-version: 16
82+
# Don't build during install phase since we're going to explicitly build
83+
- run: npm ci --ignore-scripts
84+
- run: npm run build
85+
env:
86+
BUILD_CORE_RELEASE: true
87+
7488
# Do docs stuff (only on one host)
7589
- name: Build docs
76-
if: ${{ matrix.docsTarget }}
7790
run: npm run docs
7891
env:
7992
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
80-
- name: Deploy prod docs
81-
if: ${{ github.ref == 'refs/heads/main' && matrix.docsTarget }}
93+
- name: Deploy prod docs # TODO: only deploy prod docs when we publish a new version
94+
if: ${{ github.ref == 'refs/heads/main' }}
8295
uses: netlify/actions/cli@master
8396
with:
8497
args: deploy --dir=packages/docs/build --prod
8598
env:
8699
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
87100
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
88101
- name: Deploy draft docs
89-
if: ${{ github.ref != 'refs/heads/main' && matrix.docsTarget }}
102+
if: ${{ github.ref != 'refs/heads/main' }}
90103
uses: netlify/actions/cli@master
91104
with:
92105
args: deploy --dir=packages/docs/build

etc/verdaccio-config.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)