-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npm publish workflow, updates for upcoming release (#99)
- Loading branch information
Showing
3 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
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,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 }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -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" | ||
}, | ||
|