Skip to content

Commit

Permalink
add gh actions + test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Dec 5, 2023
1 parent e1a2d54 commit 8d86a5b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 63 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update-docs-and-notices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# cannot use the default workflow (https://github.com/yext/slapshot-reusable-workflows)
# because of the monorepo structure
name: Check and Update Repo's documenation and third party notices

on: pull_request

jobs:
update-docs-and-third-party-notices:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci --ignore-scripts
- run: npm run build
- name: Update Documentation
uses: EndBug/add-and-commit@v9
with:
message: "Automated update to repo's documentation and third party notices from github action"
add: '**/*.md **/THIRD-PARTY-NOTICES'
push: true
default_author: github_actions
2 changes: 1 addition & 1 deletion generate-notices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ REPO_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
echo "copying package $PACKAGE_DIR to $REPO_DIR/temp"
rm -rf "$REPO_DIR/temp"
cp -r $PACKAGE_DIR "$REPO_DIR/temp"
cd "$REPO_DIR/temp" && npm i
cd "$REPO_DIR/temp" && npm i --ignore-scripts
generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite
cp "$REPO_DIR/temp/THIRD-PARTY-NOTICES" $PACKAGE_DIR
rm -rf "$REPO_DIR/temp"
30 changes: 0 additions & 30 deletions packages/chat-headless-react/THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
This file was generated with the generate-license-file npm package!
https://www.npmjs.com/package/generate-license-file

The following npm package may be included in this product:

- @babel/[email protected]

This package contains the following license and notice below:

MIT License

Copyright (c) 2014-present Sebastian McKenzie and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-----------

The following npm package may be included in this product:

Expand Down
2 changes: 1 addition & 1 deletion packages/chat-headless-react/src/ChatHeadlessProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ChatHeadlessContext } from "./ChatHeadlessContext";
import { updateClientSdk } from "./utils/clientSdk";

/**
* Props for {@link ChatHeadlessProvider}
* Props for {@link ChatHeadlessProvider}. test
*
* @public
*/
Expand Down
30 changes: 0 additions & 30 deletions packages/chat-headless/THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
This file was generated with the generate-license-file npm package!
https://www.npmjs.com/package/generate-license-file

The following npm package may be included in this product:

- @babel/[email protected]

This package contains the following license and notice below:

MIT License

Copyright (c) 2014-present Sebastian McKenzie and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-----------

The following npm package may be included in this product:

Expand Down
2 changes: 1 addition & 1 deletion packages/chat-headless/src/models/ChatHeadless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ChatEventPayLoad } from "@yext/analytics";

/**
* Provides the functionality needed to interact with the Chat API in a
* stateful manner.
* stateful manner. test
*
* @public
*/
Expand Down

0 comments on commit 8d86a5b

Please sign in to comment.