-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||