Skip to content

Commit

Permalink
Merge pull request #1 from groupon/dbushong/feature/main/publish
Browse files Browse the repository at this point in the history
publish
  • Loading branch information
dbushong committed Aug 26, 2022
2 parents 2aaf55b + 091ec79 commit 861b358
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 80 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nlm-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: NLM Release

on:
push:
branches: [ main ]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npx nlm release
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
32 changes: 32 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source
# code and run tests across different versions of node
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: NPM Test

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npx nlm verify
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Options:
```

This command allows you to create Bulk PRs, with repeatable commands, across
a given list of PRs.
a given list of repositories.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion mocks/gh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -e

if [ "$*" != "auth status --show-token" ]; then
echo "unhandled mock gh invocation: gh $*" >&2
Expand Down
156 changes: 78 additions & 78 deletions package-lock.json

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

0 comments on commit 861b358

Please sign in to comment.