Skip to content

Commit 4e51735

Browse files
author
Wes Biggs
committed
Add Github workflows
1 parent 671f701 commit 4e51735

File tree

5 files changed

+125
-0
lines changed

5 files changed

+125
-0
lines changed

.github/ISSUE_TEMPLATE/BUG_Issue.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Bug Report
3+
about: Report an issue found in the Frequency Schemas
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
Thanks for reporting an issue!
9+
10+
### Steps to reproduce
11+
Tell us how to reproduce this issue.
12+
13+
### Expected behaviour
14+
Tell us what should happen
15+
16+
### Actual behaviour
17+
Tell us what happens instead
18+
19+
### Any logs, error output, etc?
20+
...
21+
22+
### Any other comments?
23+
...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Issue Template
4+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Problem
2+
=======
3+
problem statement
4+
5+
Closes: <!-- GitHub Issue ->
6+
7+
Solution
8+
========
9+
What I/we did to solve this problem
10+
11+
with @pairperson1
12+
13+
Double Checks:
14+
---------------
15+
- [] Did you update the changelog?
16+
- [] Do you have good documentation on exported methods?
17+
18+
Change summary:
19+
---------------
20+
* Tidy, well formulated commit message
21+
* Another great commit message
22+
* Something else I/we did
23+
24+
Steps to Verify:
25+
----------------
26+
1. A setup step / beginning state
27+
1. What to do next
28+
1. Any other instructions
29+
1. Expected behavior
30+
1. Suggestions for testing

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests CI
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ '**' ]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Use Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 18
18+
registry-url: 'https://registry.npmjs.org'
19+
cache-dependency-path: package-lock.json
20+
21+
- name: Install 💾
22+
run: npm ci
23+
24+
- name: Lint
25+
run: npm run lint
26+
27+
- name: Test
28+
run: npm run test
29+
30+
- name: Build
31+
run: npm run build
32+
33+
- name: Publish Dry Run
34+
run: npm publish --dry-run
35+
working-directory: dist

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Package
2+
on:
3+
release:
4+
types: [ released ]
5+
jobs:
6+
publish-to-npm:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Use Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 18
16+
registry-url: 'https://registry.npmjs.org'
17+
cache-dependency-path: package-lock.json
18+
19+
- name: Install 💾
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Version ⬆️
26+
run: npm version --new-version ${{ github.event.release.tag_name }} --no-git-tag-version
27+
working-directory: dist
28+
29+
- name: Publish 🚂
30+
run: npm publish --tag latest
31+
working-directory: dist
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 commit comments

Comments
 (0)