-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from South-Paw/use-npm
1.0.2: Fix hook dependencies, use NPM and update dev dependencies
- Loading branch information
Showing
12 changed files
with
22,206 additions
and
12,776 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
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 |
---|---|---|
|
@@ -16,17 +16,17 @@ jobs: | |
uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm ci | ||
|
||
- name: Build Storybook | ||
run: yarn build:storybook | ||
run: npm run build:storybook | ||
|
||
- name: Deploy draft to Netlify | ||
uses: South-Paw/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} | ||
build-dir: './storybook-static' | ||
build-dir: "./storybook-static" | ||
draft: true | ||
comment-on-pull-request: true |
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 |
---|---|---|
|
@@ -12,10 +12,10 @@ jobs: | |
uses: actions/checkout@master | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: yarn lint | ||
run: npm run lint | ||
|
||
test: | ||
name: Test | ||
|
@@ -26,12 +26,12 @@ jobs: | |
uses: actions/checkout@master | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm ci | ||
|
||
- name: Test | ||
env: | ||
CI: true | ||
run: yarn test | ||
run: npm run test | ||
|
||
build: | ||
name: Build | ||
|
@@ -42,10 +42,10 @@ jobs: | |
uses: actions/checkout@master | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm ci | ||
|
||
- name: Build Package | ||
run: yarn build | ||
run: npm run build | ||
|
||
deployDraftOnMasterCommit: | ||
name: Deploy draft to Netlify | ||
|
@@ -56,17 +56,17 @@ jobs: | |
uses: actions/checkout@master | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm ci | ||
|
||
- name: Build Storybook | ||
run: yarn build:storybook | ||
run: npm run build:storybook | ||
|
||
- name: Deploy draft build to Netlify | ||
uses: South-Paw/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} | ||
build-dir: './storybook-static' | ||
build-dir: "./storybook-static" | ||
draft: true | ||
comment-on-commit: true |
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 |
---|---|---|
|
@@ -15,15 +15,34 @@ jobs: | |
uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: npm ci | ||
|
||
- name: Build Storybook | ||
run: yarn build:storybook | ||
run: npm run build:storybook | ||
|
||
- name: Deploy production to Netlify | ||
uses: South-Paw/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} | ||
build-dir: './storybook-static' | ||
build-dir: "./storybook-static" | ||
|
||
publishPackage: | ||
name: Publish package to npm | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build package | ||
run: npm run build | ||
|
||
- name: Publish package | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
stories: ['../src/**/*.stories.@(tsx|mdx)'], | ||
addons: ['@storybook/addon-docs', '@storybook/addon-knobs', '@storybook/addon-actions'], | ||
addons: ['@storybook/addon-essentials'], | ||
}; |
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,4 @@ | ||
export const parameters = { | ||
controls: { expanded: true }, | ||
layout: 'fullscreen', | ||
}; |
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.
6c88e1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Netlify deployed react-obfuscate-ts as draft
https://5ffeae3fd9428cb907fb87d6--react-obfuscate-ts.netlify.app