This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f32b55
commit 40f3a59
Showing
4 changed files
with
66 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build & Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: build & test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.x" | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
- name: Install Node dependencies | ||
run: npm ci | ||
|
||
- name: Run Node build (if present) | ||
run: npm run build --if-present | ||
|
||
- name: Run Tests (if present) | ||
run: npm test --if-present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.x" | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
- name: Install Node dependencies | ||
run: npm ci | ||
|
||
- name: Update version in package.json | ||
run: | | ||
TAG_VERSION=${GITHUB_REF#refs/tags/} | ||
npm version $TAG_VERSION --no-git-tag-version | ||
- name: Run Node build (if present) | ||
run: npm run build --if-present | ||
|
||
- name: Publish NPM package | ||
run: npm publish --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@qpoint/testing", | ||
"version": "0.0.7", | ||
"version": "0.0.0", | ||
"description": "A suite of testing utilitiess for QPoint middleware.", | ||
"author": "Jon Friesen <[email protected]>", | ||
"homepage": "https://github.com/qpoint-io/qpoint-testing#readme", | ||
|