Skip to content

Commit

Permalink
npm publish workflow, updates for upcoming release (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-rite authored Mar 3, 2024
1 parent f8a8be4 commit 359fe58
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package to npmjs
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@nuwcdivnpt'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"name": "stigman-watcher",
"version": "1.4.1",
"version": "1.4.2",
"description": "CLI that watches a path for STIG test result files on behalf of a STIG Manager Collection.",
"main": "index.js",
"type": "module",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/nuwcdivnpt/stigman-watcher.git"
},
"bin": {
"stigman-watcher": "index.js"
},
"scripts": {
"test": "c8 --reporter=html --reporter=text mocha './test/**/*.test.js'",
"test:watch": "nodemon --ext 'js' --exec 'npm test'"
},
"type": "module",
"author": "[email protected]",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/nuwcdivnpt/stigman-watcher.git"
},
"engines": {
"node": ">=14"
},
Expand Down

0 comments on commit 359fe58

Please sign in to comment.