Skip to content

Commit

Permalink
build: gha (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith authored Aug 14, 2024
1 parent 1e0c369 commit 581f70f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 23 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build

on:
push:
branches:
- master
tags:
- v*
pull_request:

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
node: [8, 10, 12, 14, 16, 18, 20, 22]
steps:
- uses: Brightspace/third-party-actions@actions/checkout

- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: ${{ matrix.node }}

- run: npm install
- run: npm test

publish:
if: github.ref_type == 'tag'
needs: test

runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
id-token: write
steps:
- uses: Brightspace/third-party-actions@actions/checkout

- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
"scripts": {
"check-style": "eslint .",
"pretest": "npm run check-style",
"test": "nyc --all --include src -- mocha spec",
"report-cov": "nyc report --reporter=text-lcov | coveralls"
"test": "nyc --all --include src --reporter=text-summary -- mocha spec"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Brightspace/node-jwk-to-pem.git"
"url": "git+https://github.com/Brightspace/node-jwk-to-pem"
},
"keywords": [
"jwt",
Expand All @@ -37,7 +36,6 @@
},
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.0.5",
"eslint": "^6.0.1",
"eslint-config-brightspace": "^0.6.4",
"jwa": "^1.1.4",
Expand Down

0 comments on commit 581f70f

Please sign in to comment.