Skip to content

Commit

Permalink
ci: add version bump for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
leezng committed Nov 28, 2023
1 parent 882b7d9 commit 9a1370c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/bump-version-v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create Release for v1

on:
workflow_dispatch:

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Automated Version Bump
uses: phips28/gh-action-bump-version@v9.1.0
env:
GITHUB_USER: ${{ secrets.CI_NAME }}
GITHUB_EMAIL: ${{ secrets.CI_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-prefix: 'v'

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

# - name: Publish NPM
# run: |
# npm ci
# npm run build
# npm publish --tag v1-latest
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
GITHUB_USER: ${{ secrets.CI_NAME }}
GITHUB_EMAIL: ${{ secrets.CI_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-prefix: 'v'

- name: Set up Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 9a1370c

Please sign in to comment.