Skip to content

Commit

Permalink
feat(workflow): Add a github workflow to generate new version
Browse files Browse the repository at this point in the history
  • Loading branch information
theotime2005 committed Jan 25, 2025
1 parent c739ed9 commit c302ccf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/Build version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build version

# This workflow generate a new version and push on the main branch
It's run manually
on:
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-upload-new-version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup node js
uses: actions/setup-node@v4
with:
node-version: 'latest'

- name: Setup git
# The name of this bot is bnote-settings-deployer
run: git config --global user.name "bnote-settings-deployer" && git config --global user.email "[email protected]"

- name: Generate new version
run: npm run production
env:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c302ccf

Please sign in to comment.