Skip to content

Commit 5a5d828

Browse files
committed
ci: add version bump for v1
1 parent 55c464f commit 5a5d828

File tree

2 files changed

+43
-17
lines changed

2 files changed

+43
-17
lines changed
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/[email protected]
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: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,29 @@ name: Create Release
22

33
on:
44
push:
5-
branches:
6-
- "master"
5+
branches:
6+
- 'master'
77

88
jobs:
99
bump-version:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414

1515
- name: Automated Version Bump
16-
uses: phips28/gh-action-bump-version@v7.1.0
16+
uses: phips28/gh-action-bump-version@v9.1.0
1717
env:
1818
GITHUB_USER: ${{ secrets.CI_NAME }}
1919
GITHUB_EMAIL: ${{ secrets.CI_EMAIL }}
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
tag-prefix: 'v'
2023

2124
- name: Set up Node.js
22-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v3
2326
with:
24-
node-version: 12
27+
node-version: 16
2528
registry-url: https://registry.npmjs.org/
2629

2730
- name: Publish NPM
@@ -31,14 +34,3 @@ jobs:
3134
npm publish
3235
env:
3336
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
35-
- name: Set up Node.js
36-
uses: actions/setup-node@v1
37-
with:
38-
registry-url: https://npm.pkg.github.com/
39-
40-
- name: Publish GPR
41-
run: |
42-
npm publish
43-
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)