Skip to content

Commit

Permalink
ci: add semantic release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Oct 23, 2021
1 parent 319093a commit a654a1d
Show file tree
Hide file tree
Showing 5 changed files with 4,479 additions and 288 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,17 @@ jobs:
with:
node-version: 14
- run: npm ci
- run: npm run build
- run: npm run build
release:
runs-on: ubuntu-latest
needs: [test, build]
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy

on:
release:
types:
- created

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm ci
- run: npm run build
- uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
Loading

0 comments on commit a654a1d

Please sign in to comment.