-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme, package.json and build-and-release
- Loading branch information
1 parent
7355c2d
commit d21f2c3
Showing
3 changed files
with
42 additions
and
37 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 |
---|---|---|
|
@@ -5,8 +5,7 @@ on: | |
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
build_and_publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -24,16 +23,6 @@ jobs: | |
run: | | ||
yarn lint | ||
- name: Build Storybook | ||
run: | | ||
yarn release-storybook | ||
# Switch to use https://github.com/actions/deploy-pages | ||
# - name: Publish to Github Pages | ||
# uses: maxheld83/[email protected] | ||
# env: | ||
# GH_PAT: ${{ secrets.GH_PAT }} | ||
# BUILD_DIR: ".out/" | ||
|
||
- name: Build Package Release | ||
run: | | ||
yarn release | ||
|
@@ -42,3 +31,31 @@ jobs: | |
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN}} | ||
|
||
deploy: | ||
# Add a dependency to the build job | ||
needs: build_and_publish | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build Storybook | ||
run: | | ||
yarn release-storybook | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: '.out/' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-twitch-embed-video", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"author": "Erik Guzman <[email protected]>", | ||
"description": "Allows you to easily embed a twitch video in your ReactJS application", | ||
"bugs": { | ||
|
@@ -31,6 +31,7 @@ | |
"build": "vite build", | ||
"dev": "storybook dev -p 9001", | ||
"lint": "eslint --color --ext .js,.md,.ts,.tsx src", | ||
"lint:fix": "eslint --fix --color --ext .js,.md,.ts,.tsx src", | ||
"release-storybook": "storybook build -o .out", | ||
"release": "vite build", | ||
"test": "vitest", | ||
|