dependabot[bot] 72ceca59e8
chore(deps): bump bcomnes/npm-bump from 2.1.0 to 2.2.1 (#139)
Bumps [bcomnes/npm-bump](https://github.com/bcomnes/npm-bump) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/bcomnes/npm-bump/releases)
- [Changelog](https://github.com/bcomnes/npm-bump/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bcomnes/npm-bump/compare/v2.1.0...v2.2.1)

---
updated-dependencies:
- dependency-name: bcomnes/npm-bump
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 03:57:45 +00:00

40 lines
1.1 KiB
YAML

name: npm bump
on:
workflow_dispatch:
inputs:
newversion:
description: 'npm version (major minor patch)'
required: true
env:
node_version: 16
FORCE_COLOR: 1
concurrency: # prevent concurrent releases
group: npm-bump
cancel-in-progress: true
jobs:
version_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# fetch full history so things like auto-changelog work properly
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm test
- uses: bcomnes/npm-bump@v2.2.1
with:
git_email: bcomnes@gmail.com
git_username: ${{ github.actor }}
newversion: ${{ github.event.inputs.newversion }}
github_token: ${{ secrets.GITHUB_TOKEN }} # built in actions token. Passed tp gh-release if in use.
publish_cmd: npm run release