Skip to content

Commit 9a1370c

Browse files
committed
ci: add version bump for v1
1 parent 882b7d9 commit 9a1370c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/bump-version-v1.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Create Release for v1
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
bump-version:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Code
11+
uses: actions/checkout@v3
12+
13+
- name: Automated Version Bump
14+
uses: phips28/gh-action-bump-version@v9.1.0
15+
env:
16+
GITHUB_USER: ${{ secrets.CI_NAME }}
17+
GITHUB_EMAIL: ${{ secrets.CI_EMAIL }}
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
tag-prefix: 'v'
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 16
26+
registry-url: https://registry.npmjs.org/
27+
28+
# - name: Publish NPM
29+
# run: |
30+
# npm ci
31+
# npm run build
32+
# npm publish --tag v1-latest
33+
# env:
34+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/bump-version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
GITHUB_USER: ${{ secrets.CI_NAME }}
1919
GITHUB_EMAIL: ${{ secrets.CI_EMAIL }}
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
tag-prefix: 'v'
2123

2224
- name: Set up Node.js
2325
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)