mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +00:00
Create release.yml
This commit is contained in:
parent
86a931c560
commit
9a792306ca
32
.github/workflows/release.yml
vendored
Normal file
32
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
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.2
|
||||||
|
with:
|
||||||
|
# fetch full history so things like auto-changelog work properly
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-node@v2.1.1
|
||||||
|
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'
|
||||||
|
- uses: bcomnes/npm-bump@v1.0.4
|
||||||
|
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.
|
||||||
|
npm_token: ${{ secrets.NPM_TOKEN }} # user set secret token generated at npm
|
||||||
Loading…
x
Reference in New Issue
Block a user