Skip to content

Commit

Permalink
chore: add .github
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Sep 26, 2023
1 parent 8d35e38 commit b537809
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
jobs:
test:
runs-on: ubuntu-latest
environment: release
name: Test
steps:
- name: setup repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
timeout-minutes: 10
name: Test and build
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
27 changes: 27 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
jobs:
test:
runs-on: ubuntu-latest
environment: release
name: Test
steps:
- name: setup repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Test, build and release
on:
push:
branches:
- main

0 comments on commit b537809

Please sign in to comment.