diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..def9e7d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ + +name: Semantic Version + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 14.17 + + - name: Install Dependencies + run: yarn install + + - name: Build App + run: yarn build + + - name: Semantic Release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8f43642..ade7a2a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ lerna-debug.log* build-storybook.log node_modules - +dist dist-ssr *.local /storybook-static