Skip to content

Commit

Permalink
surge
Browse files Browse the repository at this point in the history
  • Loading branch information
paschalidi committed Jan 16, 2020
1 parent 406f594 commit cba18f0
Show file tree
Hide file tree
Showing 3 changed files with 377 additions and 20 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
- run: yarn linter:check
- run: yarn test

deploy-surge:
# needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: yarn
- run: yarn build:storybook
- run: yarn surge --project storybook-static --domain ${{github.sha}}-web-compoments.surge.sh --token ${{ secrets.surge_token }}

publish-npm:
# needs: test
runs-on: ubuntu-latest
Expand All @@ -26,5 +35,4 @@ jobs:
- run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
- run: yarn deploy:storybook
- run: yarn publish --new-version ${GITHUB_REF#"refs/tags/"} --no-git-tag-version
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"jest-styled-components": "6.3.3",
"prettier": "^1.18.2",
"react-scripts": "^3.1.1",
"react-test-renderer": "16.10.2"
"react-test-renderer": "16.10.2",
"surge": "^0.21.3"
},
"jest": {
"projects": [
Expand Down
Loading

0 comments on commit cba18f0

Please sign in to comment.