forked from ryancyq/github-signed-commit
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 898 Bytes
/
release.yml
File metadata and controls
39 lines (33 loc) · 898 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
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release Version
run-name: Release Version ${{ inputs.version }}
concurrency:
group: release-new-version
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
version:
description: NPM Version
required: true
type: string
env:
NPM_VERSION: ${{ inputs.version }}
jobs:
github-actions:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- run: npm version --no-git-tag-version ${{ env.NPM_VERSION }}
- name: Commit package.json
uses: ryancyq/github-signed-commit@v1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: package*.json
commit-message: "release: Bump version for ${{ env.NPM_VERSION }}"
tag: v${{ env.NPM_VERSION }}