Skip to content

Commit

Permalink
Move to npm workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Sep 20, 2024
1 parent e0c6129 commit 14ca05d
Show file tree
Hide file tree
Showing 20 changed files with 7,111 additions and 85,609 deletions.
58 changes: 32 additions & 26 deletions .github/workflows/publish-github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- .github/workflows/publish-github-pages.yaml
- samples/**

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,24 +20,26 @@ jobs:
- name: Checking out for ${{ github.ref }}
uses: actions/checkout@v2

- name: Run npm ci --no-production
env:
NODE_ENV: production
run: |
cd samples
npm ci --no-production
# - name: Run npm ci --no-production
# env:
# NODE_ENV: production
# run: |
# cd samples
# npm ci --no-production

- name: Run npm run bootstrap
run: |
cd samples
npm run bootstrap
# - name: Run npm run bootstrap
# run: |
# cd samples
# npm run bootstrap

- run: npm clean-install
working-directory: ./samples

- name: Run npm run build
env:
NODE_ENV: production
run: |
cd samples
npm run build
run: npm run build
working-directory: ./samples

- name: Copy files
run: |
Expand Down Expand Up @@ -100,24 +106,24 @@ jobs:
mkdir gh-pages/06.recomposing-ui/d.plain-ui
rsync -av --progress samples/06.recomposing-ui/d.plain-ui/build/ gh-pages/06.recomposing-ui/d.plain-ui/
- name: Upload bundles
uses: actions/upload-artifact@v2
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: gh-pages
path: gh-pages/**/*

release:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

permissions:
id-token: write
pages: write

needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v2
with:
name: gh-pages
path: ./public

- name: Publish GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
16 changes: 9 additions & 7 deletions .github/workflows/samples.07.a.upload-to-azure-storage.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: samples/07.a.upload-to-azure-storage

on:
push:
branches:
- main
paths:
- .github/workflows/samples.07.a.upload-to-azure-storage.yaml
- samples/07.advanced-web-chat-apps/a.upload-to-azure-storage/**
on: {} # Pipeline is disabled

# on:
# push:
# branches:
# - main
# paths:
# - .github/workflows/samples.07.a.upload-to-azure-storage.yaml
# - samples/07.advanced-web-chat-apps/a.upload-to-azure-storage/**

env:
APP_NAME: webchat-samples-uploadazurestorage
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/samples.07.b.sso-for-enterprise.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: samples/07.b.sso-for-enterprise

on:
push:
branches:
- main
paths:
- .github/workflows/samples.07.b.sso-for-enterprise.yaml
- samples/07.advanced-web-chat-apps/b.sso-for-enterprise/**
on: {} # Pipeline is disabled

# on:
# push:
# branches:
# - main
# paths:
# - .github/workflows/samples.07.b.sso-for-enterprise.yaml
# - samples/07.advanced-web-chat-apps/b.sso-for-enterprise/**

env:
APP_NAME: webchat-samples-ssoenterprise
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/samples.07.c.sso-for-intranet.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: samples/07.c.sso-for-intranet

on:
push:
branches:
- main
paths:
- .github/workflows/samples.07.c.sso-for-intranet.yaml
- samples/07.advanced-web-chat-apps/c.sso-for-intranet/**
on: {} # Pipeline is disabled

# on:
# push:
# branches:
# - main
# paths:
# - .github/workflows/samples.07.c.sso-for-intranet.yaml
# - samples/07.advanced-web-chat-apps/c.sso-for-intranet/**

env:
APP_NAME: webchat-samples-ssointranet
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/samples.07.d.sso-for-teams.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: samples/07.d.sso-for-teams

on:
push:
branches:
- main
paths:
- .github/workflows/samples.07.d.sso-for-teams.yaml
- samples/07.advanced-web-chat-apps/d.sso-for-teams/**
on: {} # Pipeline is disabled

# on:
# push:
# branches:
# - main
# paths:
# - .github/workflows/samples.07.d.sso-for-teams.yaml
# - samples/07.advanced-web-chat-apps/d.sso-for-teams/**

env:
APP_NAME: webchat-samples-ssoteams
Expand Down
Loading

0 comments on commit 14ca05d

Please sign in to comment.