Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore (release): 6.0.0 #1821

Merged
merged 158 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
0cf15cf
Show information about CORS policy if query fails due to CORS restric…
millicentachieng Jan 12, 2022
ce3d100
chore/handover-translations-202112102137 (#1311)
thewahome Jan 12, 2022
8489f75
Add PowerShell snippets tab (#1273)
millicentachieng Jan 13, 2022
e6252d1
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jan 13, 2022
b121494
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jan 13, 2022
3fbec05
chore/handover-translations-202112132250 (#1317)
thewahome Jan 13, 2022
765110a
Merge January 2022 release into dev (#1345)
millicentachieng Jan 14, 2022
473d1e0
Update azure-pipelines.yml for Azure Pipelines
ElinorW Jan 14, 2022
e5551e5
Add resource explorer telemetry (#1347)
millicentachieng Jan 14, 2022
cdb7463
Fix: Expand/Collapse button on Response Preview editor (#1349)
ElinorW Jan 17, 2022
27581fb
remove header from resource context menu (#1337)
Onokaev Jan 17, 2022
a5b2d2b
chore/handover-translations-202201141637 (#1352)
thewahome Jan 17, 2022
8b0fc32
Adds ability to add functions to collections (#1348)
Onokaev Jan 18, 2022
222d43f
Fixes preview collection button (#1350)
Onokaev Jan 18, 2022
a32fff6
chore/handover-translations-202201181914 (#1355)
thewahome Jan 18, 2022
e4a7cd6
Removes 'Access Query Parameters' from the resources' context menu (#…
Onokaev Jan 19, 2022
6875104
Task: Update dependencies (#1356)
ElinorW Jan 19, 2022
69c23e7
add status message to history item (#1364)
Onokaev Jan 24, 2022
1efb010
Fix: disable link highlighting (#1358)
Onokaev Jan 26, 2022
966b99c
Fix version validation for autocomplete (#1357)
millicentachieng Jan 26, 2022
319d354
Fix: Enable focus to remain on copy button when clicked (#1379)
ElinorW Jan 26, 2022
9055147
Fix: Add aria-label for items in the sample queries tab (#1378)
ElinorW Jan 27, 2022
d27a373
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jan 28, 2022
29f06be
chore/handover-translations-202201301912
thewahome Jan 31, 2022
bfa0ca1
Fix: Query input 'i' icon focus (#1377)
ElinorW Jan 31, 2022
35ab3b2
Update user profile info if they use a different account to consent t…
millicentachieng Jan 31, 2022
99aed2a
Update documentation link icon (#1390)
millicentachieng Feb 1, 2022
72be5be
Fix: Text overflowing on feedback and access token tabs (#1382)
Onokaev Feb 1, 2022
11d689c
Show Resource Explorer HTTP methods next to resource (#1367)
millicentachieng Feb 1, 2022
f517d99
change pivot items order (#1407)
ElinorW Feb 2, 2022
59e2ddc
Hide resources tab (#1408)
millicentachieng Feb 2, 2022
e52cc64
Fix copy button on response headers (#1409)
Onokaev Feb 2, 2022
8d159cd
Fix: Appearing/Disappearing popup (#1418)
ElinorW Feb 3, 2022
8b1cbe6
Fix: Selectively disable HTTP cache for failing anonymous fetch calls…
Onokaev Feb 3, 2022
8da621e
chore/handover-translations-202202041836 (#1425)
thewahome Feb 4, 2022
630f639
chore/handover-translations-202202061812 (#1428)
thewahome Feb 7, 2022
39b72e7
chore/handover-translations-202202071552 (#1430)
thewahome Feb 7, 2022
d00663e
Release: February 2022 (#1447)
ElinorW Feb 10, 2022
8dccf2c
Fix: hanging run query button (#1445)
thewahome Feb 11, 2022
df516d9
Fix: Narrator announces Tab items activation (#1435)
ElinorW Feb 11, 2022
ab90380
Fix: Remove extra outline from search boxes (#1438)
Onokaev Feb 15, 2022
d5efe72
Fix: Resize sidebar (#1433)
thewahome Feb 15, 2022
e9e8ffe
remove semi-colon (#1457)
ElinorW Feb 15, 2022
131e9f9
Task: Add Manifest Generator task for EO compliance (#1439)
MIchaelMainer Feb 16, 2022
7c9645b
Task: Migrate from webpack v4 to webpack v5 (#1395)
ElinorW Feb 17, 2022
965a636
Fix: Toolkit component text padding (#1461)
Onokaev Feb 17, 2022
64cf11d
Enhancement: Changes position of feedback button (#1455)
Onokaev Feb 17, 2022
d15d055
chore/handover-translations-202202180932 (#1468)
thewahome Feb 18, 2022
44f0b1b
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Feb 18, 2022
8e1bb8a
Task: Improve test coverage (#1434)
Onokaev Feb 18, 2022
612acea
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Feb 18, 2022
255e8fa
chore: handover translations 202202182126
thewahome Feb 21, 2022
f24aa42
chore: handover translations 202202190029
thewahome Feb 21, 2022
3bef3d8
chore: handover translations 202202190327
thewahome Feb 21, 2022
5d83574
chore: handover translations 202202191226
thewahome Feb 21, 2022
87c2228
Chore: update dependencies (#1476)
thewahome Feb 21, 2022
b99d239
Disable invalid space error on url on carriage returns (#1464)
Onokaev Feb 22, 2022
5058967
Chore: reorganise test files (#1481)
thewahome Feb 22, 2022
18ed162
add new code owner (#1485)
Onokaev Feb 22, 2022
8704131
Chore: remove unnecessary packages (#1487)
thewahome Feb 23, 2022
eca50b5
Fix: Selectively disable invalid url warning (#1484)
Onokaev Feb 24, 2022
ebfbaf8
decode url within a try catch (#1489)
Onokaev Feb 24, 2022
a4c6126
Fix: Corrects position of feedback button and GE title (#1492)
Onokaev Feb 28, 2022
253c019
Task: Adjust feedback popup time (#1496)
ElinorW Mar 1, 2022
838a9d4
Fix/share button enhancement (#1459)
Onokaev Mar 1, 2022
92b515f
Tests: move spec files closer to file under test (#1497)
thewahome Mar 1, 2022
9e9e8b5
Chore: change build agent to MsGraphBuildAgentsWindows (#1511)
thewahome Mar 2, 2022
2cb40b6
Fix: try-it experience layout (#1495)
thewahome Mar 2, 2022
a6aa6f3
Tests: skip spec.tsx files (#1519)
thewahome Mar 3, 2022
54e2940
Enhancement: Code snippets UI (#1494)
ElinorW Mar 3, 2022
46c2eb5
fix: restore accessibility tests (#1526)
Onokaev Mar 5, 2022
8b8c80f
Fix: Show correct information on Modify Permissions tab (#1498)
Onokaev Mar 8, 2022
e1f9d27
Fix: Add Fluent Responsive stylesheet (#1500)
ElinorW Mar 8, 2022
1b428c8
Chore: Cut a release github workflow (#1514)
thewahome Mar 8, 2022
0ef55d6
Fix: Authentication error handling (#1547)
Onokaev Mar 10, 2022
1a7c967
Chore: Update to 4.17.0 (#1548)
github-actions[bot] Mar 10, 2022
d084f05
Try using hosted image (#1551)
MIchaelMainer Mar 11, 2022
6bfe456
Chore: Update to 4.18.0 (#1552)
github-actions[bot] Mar 11, 2022
6934106
Chore: Update packages from Dependabot: March (#1554)
thewahome Mar 14, 2022
80a4b09
Fix: Code snippet generation (#1559)
thewahome Mar 16, 2022
40995bb
Chore(deps): Bump glob-parent from 3.1.0 to 5.1.2 (#1563)
dependabot[bot] Mar 16, 2022
ecef40f
Enhancement: Adjust position of chevron icon on history items' header…
Onokaev Mar 17, 2022
262dd13
Fix: Update Tip message format (#1570)
ElinorW Mar 18, 2022
388ba03
Fix: validate permissions before any operations (#1578)
Onokaev Mar 28, 2022
59fe54d
Restore resources tab (#1319)
millicentachieng Mar 30, 2022
a2db247
Fix: Narrator announces more information about a sample query header …
ElinorW Mar 31, 2022
ce6a060
Fix: Parse whitespace in query parameters (#1555)
ElinorW Mar 31, 2022
592f2de
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Apr 4, 2022
b23ee8f
Chore: Update to 5.0.0 (#1581)
github-actions[bot] Apr 4, 2022
4f566b0
chore: handover-translations-202204042239 (#1605)
thewahome Apr 5, 2022
39e2e32
chore: handover-translations-202204042241 (#1606)
thewahome Apr 5, 2022
c960dbe
Fix: Makes app consistent on all browsers (#1602)
Onokaev Apr 5, 2022
9a8652f
Chore: Update MsGraph JavaScript SDK (#1568)
ElinorW Apr 7, 2022
16ab76e
Fix: Update query field when a sample query is selected (#1607)
ElinorW Apr 7, 2022
e5f9fa0
Chore: Dependabot upgrades (#1603)
thewahome Apr 7, 2022
0a95e81
Add query resulting in CORS error to list for the appropriate message…
millicentachieng Apr 7, 2022
f5c7a11
Enhancement: Add more info to code snippets (#1540)
Onokaev Apr 7, 2022
69fd519
Fix: Header position on try-it experience (#1636)
Onokaev Apr 8, 2022
f38e6e0
Task: Bulk update of dependabot upgrades (#1638)
thewahome Apr 8, 2022
f5d9a61
Task: Package updates (#1641)
thewahome Apr 8, 2022
a35c320
Fix: Display permissions on modify permissions tab (#1642)
Onokaev Apr 8, 2022
a17870e
Fix: Signing out on Try-It (#1634)
Onokaev Apr 8, 2022
cacf3c0
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Apr 10, 2022
1899adf
Handle CORS error thrown when GE attempts to download file from a red…
millicentachieng Apr 10, 2022
422a95a
Fix: Send proper request body type for code snippets (#1639)
ElinorW Apr 12, 2022
728734d
Fix: Sidebar and query response components on zoom (#1658)
Onokaev Apr 12, 2022
b8787e5
Chore: Update to 5.1.0 (#1661)
github-actions[bot] Apr 13, 2022
96d3112
Fix: Build information for feedback and telemetry (#1669)
Onokaev Apr 14, 2022
27d917e
Task: Persist sidebar selection (#1664)
Onokaev Apr 19, 2022
762c473
Chore: Update fluentUI package (#1674)
ElinorW Apr 20, 2022
8466131
Chore: Update to 5.1.1 (#1680)
ElinorW Apr 22, 2022
a3dbf0e
Fix: Request section layout (#1681)
Onokaev Apr 26, 2022
4b89500
Task: Refactor permissions (#1665)
Onokaev Apr 28, 2022
70b4999
Fix: Permissions consent button color (#1679)
Onokaev May 4, 2022
a25927a
Fix: OCV Feedback rating (#1687)
Onokaev May 11, 2022
d0a142b
Chore: Update to 5.2.0 (#1728)
github-actions[bot] May 16, 2022
85d16a2
Show isolated resources (#1741)
Onokaev May 18, 2022
b728fc4
Fix: Refactor sample queries (#1677)
ElinorW May 18, 2022
632faee
Improve efficiency of query sanitization regexes (#1726)
millicentachieng May 18, 2022
9b2891b
Task: auto merge dependabot PRs into one PR (#1735)
Onokaev May 19, 2022
e14ba4f
Add history items as a batch (#1748)
Onokaev May 20, 2022
9a2f1a7
Fix: Expand/Collapse toggling (#1750)
ElinorW May 25, 2022
effd771
Use compliant 1es agent pool (#1760)
MIchaelMainer May 28, 2022
c49ca9b
Fix: Add overflow aria-label (#1758)
ElinorW May 30, 2022
47b6ace
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome May 30, 2022
cc7a1e7
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome May 30, 2022
26ddb8a
chore: handover translations 202205302030
thewahome May 31, 2022
0194e18
chore: handover translations 202205302328
thewahome May 31, 2022
ec90132
chore: handover translations 202205310228
thewahome May 31, 2022
d2a9cb3
Chore: handover-translations (#1770)
thewahome May 31, 2022
e59a6ee
Remove button-name from accessibility exclusion (#1762)
Onokaev Jun 2, 2022
bb9036f
Chore: Consolidate github workflows (#1740)
thewahome Jun 2, 2022
0d7fb74
Task: localise resource explorer (#1753)
thewahome Jun 2, 2022
924ac1f
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 2, 2022
af86a09
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 2, 2022
b42228a
chore: handover translations 202206030349
thewahome Jun 3, 2022
a184d82
Task: Make request headers editable (#1801)
Onokaev Jun 6, 2022
6f31708
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 7, 2022
b2ba6e7
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 7, 2022
ca05a2f
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 8, 2022
44a72e9
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 8, 2022
a0f7eaf
chore: handover translations 202206072100
thewahome Jun 8, 2022
e257497
Chore: Dependabot-upgrades-June (#1814)
ElinorW Jun 8, 2022
55d2228
Add headers to snippet request (#1810)
Onokaev Jun 9, 2022
39b8bcc
Feature: Add Graph Explorer header (#1682)
ElinorW Jun 9, 2022
f8be28d
Bump version to 6.0.0
invalid-email-address Jun 9, 2022
8cb8faa
Merge remote-tracking branch 'origin/master' into release/6.0.0
ElinorW Jun 9, 2022
18f4628
Merge branch 'master' into release/6.0.0
ElinorW Jun 10, 2022
7dba302
remove unused files
ElinorW Jun 10, 2022
7c050df
remove menu beak
ElinorW Jun 13, 2022
5b2cdff
reduce width and height
ElinorW Jun 13, 2022
4d29d30
remove title
ElinorW Jun 14, 2022
91880a6
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 14, 2022
2a7ce41
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 14, 2022
16c26c0
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 14, 2022
d12b032
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 14, 2022
8f77fa7
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 14, 2022
505c4d9
Update from https://github.com/microsoftgraph/microsoft-graph-devx-co…
thewahome Jun 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

118 changes: 118 additions & 0 deletions .github/workflows/combine-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: 'Combine PRs'

# This workflow will merge all dependabot PRs into one branch and open a new PR against dependabot-upgrades
on:
workflow_dispatch:
inputs:
branchPrefix:
description: 'Branch prefix to find combinable PRs based on'
required: true
default: 'dependabot/'
combineBranchName:
description: 'Name of the branch to combine PRs into'
required: true
default: 'dependabot-upgrades'

jobs:
# Update dependabot-upgrades branch so that it's in sync with dev
merge-dev-dependabot-upgrades:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com

- name: Merge dev to dependabot-upgrades
run: |
git fetch --unshallow
git pull origin
git checkout dependabot-upgrades
git merge --no-ff origin/dev --allow-unrelated-histories -m "Auto-merge dev to dependabot-upgrades"
git push

# Get all PRs opened by dependabot
combine-prs:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v3
id: fetch-branch-names
name: Fetch branch names
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const pulls = await github.paginate('GET /repos/:owner/:repo/pulls', {
owner: context.repo.owner,
repo: context.repo.repo
});
branches = [];
prs = [];
base_branch = null;
for (const pull of pulls) {
const branch = pull['head']['ref'];
console.log('Pull for branch: ' + branch);
if (branch.startsWith('${{ github.event.inputs.branchPrefix }}')) {
console.log('Branch matched: ' + branch);
console.log('Adding branch to array: ' + branch);
branches.push(branch);
prs.push('#' + pull['number'] + ' ' + pull['title']);
}
}

if (branches.length == 0) {
core.setFailed('No PRs/branches matched criteria');
return;
}

core.setOutput('base-branch', 'dev');
core.setOutput('prs-string', prs.join('\n'));

combined = branches.join(' ')
console.log('Combined: ' + combined);
return combined

# Checks-out the repository under $GITHUB_WORKSPACE, so this job can access it
- uses: actions/checkout@v2.3.3
with:
fetch-depth: 0

# Merges all dependabot PRs into the dependabot-upgrades branch
- name: Created combined branch
env:
BRANCHES_TO_COMBINE: ${{ steps.fetch-branch-names.outputs.result }}
COMBINE_BRANCH_NAME: ${{ github.event.inputs.combineBranchName }}
run: |
echo "$BRANCHES_TO_COMBINE"
sourcebranches="${BRANCHES_TO_COMBINE%\"}"
sourcebranches="${sourcebranches#\"}"

git config pull.rebase false
git config user.name github-actions
git config user.email github-actions@github.com

git fetch
git pull origin
git checkout $COMBINE_BRANCH_NAME

git pull origin $sourcebranches --no-edit
git push -f origin $COMBINE_BRANCH_NAME

# Opens a pull request to dev from dependabot-upgrades branch
- uses: actions/github-script@v3
name: Create Combined Pull Request
env:
PRS_STRING: ${{ steps.fetch-branch-names.outputs.prs-string }}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const prString = process.env.PRS_STRING;
const body = 'This PR was created by the Combine PRs action by combining the following PRs:\n' + prString;
await github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: 'Combined dependabot pull requests',
head: '${{ github.event.inputs.combineBranchName }}',
base: '${{ steps.fetch-branch-names.outputs.base-branch }}',
body: body
});
203 changes: 177 additions & 26 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint and Build
name: Lint, Build, Test and Deploy

on:
workflow_dispatch:
Expand All @@ -7,43 +7,194 @@ on:
- master
- dev
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, closed]

env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

jobs:
install:
name: Install node modules
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "14.x"

- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: |
node_modules
packages/*/node_modules
key: modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --no-audit

code-linting:
name: Lint
needs: install
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "14.x"

- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/*/node_modules
key: modules-${{ hashFiles('package-lock.json') }}

- name: Lint
run: npm run lint

build:
name: Build packages
needs: install
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "14.x"

- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/*/node_modules
key: modules-${{ hashFiles('package-lock.json') }}

- name: Build
run: npm run build

test:
name: Test
needs: install
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1, 2, 3, 4, 5, 6]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of results
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "14.x"

- name: Install Nodejs
uses: actions/setup-node@v2
with:
node-version: '12.x'
- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/*/node_modules
key: modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
run: npm install
- name: Test
run: npm run test -- --verbose --shard=${{ matrix.shard }}/${{ strategy.job-total }} --coverage --testResultsProcessor=jest-sonar-reporter

- name: Run linter
run: npm run lint
- name: Fix code coverage paths
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/lcov.info
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' reports/test-report.xml

- name: Build
run: npm run build
- run: cp reports/test-report.xml coverage/${{matrix.shard}}.xml

- name: Run the tests
run: npm run test -- --coverage --watchAll=false --testResultsProcessor=jest-sonar-reporter
- uses: actions/upload-artifact@v3
with:
name: coverage-artifacts
path: coverage/

- name: Fix code coverage paths
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/lcov.info
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' reports/test-report.xml
sonar-cloud:
name: Sonar Cloud analysis
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Run sonar cloud analysis
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: actions/download-artifact@v3
with:
name: coverage-artifacts
path: coverage

- name: Run sonar cloud analysis
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish-preview-site:
name: Static preview site creation
needs: install
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build And Deploy
env:
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }}
REACT_APP_FEEDBACK_CAMPAIGN_ID: ${{ secrets.REACT_APP_FEEDBACK_CAMPAIGN_ID }},
REACT_APP_NPS_FEEDBACK_CAMPAIGN_ID: ${{secrets.REACT_APP_NPS_FEEDBACK_CAMPAIGN_ID}}
REACT_APP_INSTRUMENTATION_KEY: ${{ secrets.REACT_APP_STAGING_INSTRUMENTATION_KEY }}
REACT_APP_NOMINATION_PERIOD: ${{secrets.REACT_APP_NOMINATION_PERIOD}}
REACT_APP_COOLDOWN_PERIOD: ${{secrets.REACT_APP_COOLDOWN_PERIOD}}
REACT_APP_USAGE_TIME: ${{secrets.REACT_APP_USAGE_TIME}}
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
skip_deploy_on_missing_secrets: true
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_JOLLY_SAND_0AC78C710 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
app_location: "/" # App source code path
app_artifact_location: "build" # Built app content directory - optional

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_JOLLY_SAND_0AC78C710 }}
action: "close"
Loading