Skip to content

Commit

Permalink
feat: deploy on release
Browse files Browse the repository at this point in the history
  • Loading branch information
singuerinc committed May 30, 2021
1 parent 7cf8925 commit eceb50a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: deploy website
on: [release]
name: Deploy web
on:
release:
types:
- published
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,7 @@ on:
- beta

jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/better-dni
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn
- run: yarn run build
- run: yarn test

build-and-publish:
needs: build-and-test
build-test-and-publish:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -38,6 +23,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn run build
- run: yarn test
- run: yarn run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit eceb50a

Please sign in to comment.