Skip to content

Commit

Permalink
1.4.3: move from travis to gha (#76)
Browse files Browse the repository at this point in the history
* move from travis to gha

* add gha readme badge

* bump deps

* add publish to gh and npm

* fix tap 16->18 assertion api changes

* fix npm publish

* fix needs

* 1.4.3

* update changelog for 1.4.3
  • Loading branch information
tphummel authored Jan 19, 2024
1 parent 970a3f0 commit f383309
Show file tree
Hide file tree
Showing 8 changed files with 9,215 additions and 8,673 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 21.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci

- name: Run Tests
run: npm test

publish:
needs: test
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup node.js to publish to github packages
uses: actions/setup-node@v3
with:
node-version: current
registry-url: https://npm.pkg.github.com/

- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: setup node.js to publish to npm
uses: actions/setup-node@v3
with:
node-version: current
registry-url: https://npm.pkg.github.com/
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
coverage/
.nyc_output/
.tap/
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1.4.3 / 2024-01-18
==================

* upgrade dev deps
* update tap tests for upgrade 16 -> 18
* move from travis to github actions
* update node.js versions to target

1.4.2 / 2021-04-17
==================

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

# node-bowling

[![Build Status](https://api.travis-ci.com/tphummel/node-bowling.svg?branch=master)](https://travis-ci.com/tphummel/node-bowling) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![Known Vulnerabilities](https://snyk.io/test/github/tphummel/node-bowling/badge.svg?targetFile=package.json)](https://snyk.io/test/github/tphummel/node-bowling?targetFile=package.json)
[![Node.js CI](https://github.com/tphummel/node-bowling/actions/workflows/main.yml/badge.svg)](https://github.com/tphummel/node-bowling/actions/workflows/main.yml) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![Known Vulnerabilities](https://snyk.io/test/github/tphummel/node-bowling/badge.svg?targetFile=package.json)](https://snyk.io/test/github/tphummel/node-bowling?targetFile=package.json)

📝scorekeeping for ten pin bowling 🎳
📝 scorekeeping for ten pin bowling 🎳

- supports complete and incomplete games
- 100% test coverage
Expand Down
Loading

0 comments on commit f383309

Please sign in to comment.