-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Add changesets releases (#395)
* core: Add changesets releases * Add storybook on PR and remove unucessary conditions * Remove permissions * Make deploy and analyze parallel * Pass branch name * Remove prerelease scripts * Remove changeset file
- Loading branch information
1 parent
9f2bece
commit 1ed821f
Showing
8 changed files
with
515 additions
and
14 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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,16 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "ebay/ebayui-core-react" | ||
} | ||
], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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 @@ | ||
name: 'Action: Deploy Storybook' | ||
description: 'Composite storybook deploy action' | ||
|
||
inputs: | ||
branch: | ||
description: branch name | ||
required: false | ||
default: main | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Build Storybook | ||
shell: sh | ||
run: NODE_OPTIONS=--openssl-legacy-provider yarn build-storybook --output-dir storybook-static/${{ inputs.branch }} | ||
|
||
- name: Publish Storybook | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: storybook-static | ||
clean: false | ||
|
||
- name: Output storybook link | ||
shell: sh | ||
run: | | ||
echo "Storybook published: https://opensource.ebay.com/ebayui-core-react/${{ inputs.branch }}/index.html" >> $GITHUB_STEP_SUMMARY |
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,20 @@ | ||
name: 'Action: 🦋 Changesets Release' | ||
description: 'Release a new version of the package using changesets' | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Release | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
version: yarn version | ||
publish: yarn release | ||
commit: "ci: release" | ||
title: "ci: release" | ||
env: | ||
# Disable husky | ||
HUSKY: 0 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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.