Skip to content

Commit

Permalink
Create spfxBuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkm17 authored Nov 28, 2023
1 parent 152e3a4 commit 4ef11c2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/spfxBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: SPFx CICD with Office 365 CLI

on: push

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v1

# Setup node.js runtime
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.13.0

# npm install
- name: Run npm ci
run: npm ci

# install gulp if mac
- name: Run npm i -g gulp
run: npm i -g gulp
if: runner.os == 'macOS'

# gulp bundle and package solution
- name: Bundle and package
run: |
gulp bundle --ship
gulp package-solution --ship

0 comments on commit 4ef11c2

Please sign in to comment.