Skip to content

Commit

Permalink
feat: create dependabot CLs and build sample add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyward committed Sep 18, 2024
1 parent 42490f7 commit 8286942
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 22 deletions.
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: 'npm'
directories:
- '/addons-web-sdk/samples'
schedule:
interval: 'daily'
# Ignore patches for everything except for @googleworkspace/meet-addons
ignore:
- dependency-name: '@types*'
update-types: ['version-update:semver-patch']
- dependency-name: 'next'
update-types: ['version-update:semver-patch']
- dependency-name: 'react*'
update-types: ['version-update:semver-patch']
- dependency-name: 'typescript'
update-types: ['version-update:semver-patch']
- dependency-name: 'webpack*'
update-types: ['version-update:semver-patch']
31 changes: 31 additions & 0 deletions .github/workflows/build-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build sample Add-ons

on:
# Runs on all PRs, or when called from another workflow.
push:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: addons-web-sdk/samples/package-lock.json
- run: npm run build
working-directory: addons-web-sdk/samples
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: page
path: addons-web-sdk/samples/dist
if-no-files-found: error
23 changes: 1 addition & 22 deletions .github/workflows/publish-sample-add-ons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,7 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: addons-web-sdk/samples/package-lock.json
- run: npm run build
working-directory: addons-web-sdk/samples
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: page
path: addons-web-sdk/samples/dist
if-no-files-found: error
uses: ./.github/workflows/build-samples.yml
deploy:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit 8286942

Please sign in to comment.