mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.3.2 to 2.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.3.2...v2.4.0) --- updated-dependencies: - dependency-name: actions/setup-node 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>
35 lines
1013 B
YAML
35 lines
1013 B
YAML
name: npm bump
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
newversion:
|
|
description: 'npm version (major minor patch)'
|
|
required: true
|
|
|
|
env:
|
|
node_version: 14
|
|
|
|
jobs:
|
|
version_and_release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
with:
|
|
# fetch full history so things like auto-changelog work properly
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@v2.4.0
|
|
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.0.2
|
|
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
|