-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from theotime2005/workflow-to-generate-version
[TECH] Put the workflow back to generate a new version
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |