-
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 #2 from flynneva/devel
add bump gh action
- Loading branch information
Showing
10 changed files
with
275 additions
and
194 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
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,38 @@ | ||
name: Bump, Tag & Publish Release | ||
on: | ||
push: | ||
branches: master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Setup git config | ||
run: | | ||
git config user.name "flynneva" | ||
git config user.email "<[email protected]>" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build Release | ||
run: npm run build | ||
- name: Bump version and push tag | ||
uses: mikeal/merge-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
DEPLOY_DIR: . | ||
SRC_PACKAGE_DIR: src | ||
- name: Get new version | ||
id: package | ||
uses: martinbeentjes/npm-get-version-action@master | ||
- name: Create a GitHub release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.package.outputs.current-version }} | ||
release_name: Release ${{ steps.package.outputs.current-version }} | ||
body: "" |
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,24 +1,23 @@ | ||
import { createPlugin } from "docz-core"; | ||
import proxy from 'http-proxy-middleware'; | ||
import { createPlugin } from 'docz-core' | ||
import proxy from 'http-proxy-middleware' | ||
|
||
const proxyPlugin = () => createPlugin({ | ||
onCreateDevServer: ({ app }) => { | ||
app.use( '/ncaa_api', | ||
proxy({ | ||
target: "https://data.ncaa.com/", | ||
changeOrigin: true, | ||
pathRewrite: { | ||
'^/ncaa_api/': '/' | ||
} | ||
})); | ||
} | ||
}); | ||
const proxyPlugin = () => | ||
createPlugin({ | ||
onCreateDevServer: ({ app }) => { | ||
app.use( | ||
'/ncaa_api', | ||
proxy({ | ||
target: 'https://data.ncaa.com/', | ||
changeOrigin: true, | ||
pathRewrite: { '^/ncaa_api/': '/' } | ||
}) | ||
) | ||
} | ||
}) | ||
|
||
export default { | ||
dest: './docs/', | ||
base: './react-ncaa-data/', | ||
title: 'react-ncaa-data', | ||
plugins: [ | ||
proxyPlugin(), | ||
], | ||
}; | ||
plugins: [proxyPlugin()] | ||
} |
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.