Skip to content

Commit

Permalink
Merge pull request #77 from theotime2005/workflow-to-generate-version
Browse files Browse the repository at this point in the history
[TECH] Put the workflow back to generate a new version
  • Loading branch information
theotime2005 authored Jan 25, 2025
2 parents 599b35a + e219782 commit 5188f0b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/Build version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow generates a new version and pushes it to the main branch
# It runs manually

name: Build version

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: Install dependencies
run: npm install

- name: Build new version
# Use standard-version to generate a new version
run: npm run release

- name: Push new version
run: git push --follow-tags origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5188f0b

Please sign in to comment.