-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #700 from okta/release/0.6.0
Release: 0.6.0
- Loading branch information
Showing
41 changed files
with
1,147 additions
and
73 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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,73 @@ | ||
name: preview | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
- 'release/**' | ||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: cofigure aws | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: set $SHA7 | ||
run: echo ::set-env name=SHA7::$(git rev-parse --short ${{ github.event.pull_request.head.sha || github.sha }}) | ||
|
||
- name: set $PREVIEW_URL | ||
run: echo ::set-env name=PREVIEW_URL::"https://"$SHA7".ods.dev" | ||
|
||
- name: get COMMIT_MSG | ||
run: | | ||
MSG=$(git log --format=%B -n 1 ${{ github.event.after }}) | ||
echo "::set-env name=COMMIT_MSG::${MSG}" | ||
- name: install dependencies | ||
run: yarn | ||
|
||
- name: test | ||
run: ./node_modules/lerna/cli.js run test | ||
|
||
- name: build docs | ||
run: yarn workspace @okta/design-docs build | ||
|
||
- name: 'deploy: create' | ||
uses: bobheadxi/[email protected] | ||
id: deployment | ||
with: | ||
step: start | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
env: preview | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: 'deploy: 🚀 start' | ||
run: | | ||
aws s3 sync ./packages/docs/dist/ s3://ods.dev/$SHA7 --delete | ||
- name: 'deploy: update status' | ||
uses: bobheadxi/[email protected] | ||
if: always() | ||
with: | ||
step: finish | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
status: ${{ job.status }} | ||
deployment_id: ${{ steps.deployment.outputs.deployment_id }} | ||
env_url: ${{ env.PREVIEW_URL }} | ||
|
||
- name: 'notify: slack' | ||
run: sh ./scripts/notify-slack.sh | ||
env: | ||
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
AUTHOR_NAME: ${{github.actor}} | ||
BRANCH_NAME: ${{github.head_ref}} | ||
PULL_REQUEST_ID: ${{github.event.pull_request.number}} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"packages": [ | ||
|
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,76 @@ | ||
<template> | ||
<aside | ||
role="status" | ||
v-if="active" | ||
:class="[ | ||
'ods-toast', | ||
'is-ods-toast-' + variant, | ||
dismissed && 'is-toast-dismissed' | ||
]" | ||
> | ||
<span class="ods-toast--icon"> | ||
<svg | ||
viewBox="0 0 14 14" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
class="ods-icon" | ||
aria-hidden="true" | ||
> | ||
<path | ||
v-if="variant" | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
:d="icon[variant]" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
</span> | ||
<h1 class="ods-toast--title">{{ title }}</h1> | ||
<p class="ods-toast--body">{{ body }}</p> | ||
<button | ||
class="ods-toast--dismiss" | ||
aria-label="Dismiss toast" | ||
v-on:click="dismiss()" | ||
></button> | ||
</aside> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
active: true, | ||
dismissed: false, | ||
// TODO: Replace with vue Icon component when available. | ||
icon: { | ||
info: | ||
"M7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13ZM8 4C8 4.55228 7.55228 5 7 5C6.44772 5 6 4.55228 6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4ZM8 6V11H6V6H8Z", | ||
caution: | ||
"M6.52856 1.29141L1.05633 12.2371C0.881095 12.5876 1.13594 13 1.52777 13H12.4722C12.8641 13 13.1189 12.5876 12.9437 12.2371L7.47144 1.29141C7.2772 0.902874 6.7228 0.902874 6.52856 1.29141ZM8 4.50001H6V9.00001H8V4.50001ZM7 12C7.55228 12 8 11.5523 8 11C8 10.4477 7.55228 10 7 10C6.44772 10 6 10.4477 6 11C6 11.5523 6.44772 12 7 12Z", | ||
danger: | ||
"M6.63381 1.15168L1.15168 6.63381C0.949439 6.83605 0.949439 7.16395 1.15168 7.36619L6.63381 12.8483C6.83605 13.0506 7.16395 13.0506 7.36619 12.8483L12.8483 7.36619C13.0506 7.16395 13.0506 6.83605 12.8483 6.63381L7.36619 1.15168C7.16395 0.949439 6.83605 0.949439 6.63381 1.15168ZM6 3.00001H8V8H6V3.00001ZM8 10C8 10.5523 7.55228 11 7 11C6.44772 11 6 10.5523 6 10C6 9.44771 6.44772 9 7 9C7.55228 9 8 9.44771 8 10Z", | ||
success: | ||
"M7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13ZM9.50016 3.42651L6.63849 8.8669L4.22481 7.07784C3.89245 6.83149 3.42613 6.89322 3.16837 7.21769C2.90629 7.5476 2.95548 8.02808 3.27889 8.29728L6.32704 10.8344C6.67432 11.1235 7.19733 11.0221 7.41313 10.6239L10.9026 4.18507C11.1185 3.78675 10.963 3.28766 10.5598 3.08475C10.173 2.89009 9.70251 3.04183 9.50016 3.42651Z" | ||
} | ||
}), | ||
props: { | ||
title: String, | ||
body: String, | ||
variant: { | ||
type: String, | ||
default: "info" | ||
} | ||
}, | ||
methods: { | ||
dismiss() { | ||
this.dismissed = true; | ||
} | ||
}, | ||
mounted() { | ||
this.$el.addEventListener("animationend", ({ animationName }) => { | ||
if (animationName === "ods-toast-out") { | ||
this.active = false; | ||
} | ||
}); | ||
} | ||
}; | ||
</script> |
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,26 @@ | ||
<template> | ||
<div class="ods-toast-pen"> | ||
<Toast | ||
v-for="toast in toasts" | ||
:variant="toast.variant" | ||
:title="'This is the ' + toast.variant + ' toast title'" | ||
body="This is supplemental information." | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
components: { Toast: () => import("./Toast.vue") }, | ||
data: () => ({ | ||
toasts: [] | ||
}), | ||
methods: { | ||
addToast(variant) { | ||
this.toasts.push({ | ||
variant | ||
}); | ||
} | ||
} | ||
}; | ||
</script> |
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
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
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
Oops, something went wrong.