-
-
Notifications
You must be signed in to change notification settings - Fork 51
26 lines (24 loc) · 779 Bytes
/
Copy pathrelease.yml
File metadata and controls
26 lines (24 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Release new version
on:
workflow_dispatch:
inputs:
release-type:
description: Type of release based on semver (e.g. patch, minor, major)
required: true
default: minor
jobs:
release:
name: Release new version to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Setup Git
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- run: npm version --no-git-tag-version ${{github.event.inputs.release-type}}
- run: git push
env:
GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
# Rely on `ci` workflow to publish new version.