Skip to content

Commit

Permalink
ci(build-version.yml): add GitHub Actions workflow for tagging releases
Browse files Browse the repository at this point in the history
Create a new GitHub Actions workflow to automate the process of tagging
releases. The workflow triggers on push, pull request, and manual
dispatch events. It checks out the repository, installs dependencies,
generates a build version, and builds the application.

chore(package.json): remove redundant generate-version script from build command

The `generate-version` script is now handled separately in the GitHub
Actions workflow, making it unnecessary to include it in the local
build command. This change streamlines the build process and ensures
version generation is consistently managed by the CI pipeline.
  • Loading branch information
mauvehed committed Dec 7, 2024
1 parent 9f905f9 commit d723826
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tag Release

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Dependencies
run: yarn install

- name: Generate Build Version
run: yarn generate-version

- name: Build Application
run: yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"generate-version": "node scripts/generate-build-version.js",
"build": "yarn generate-version && nuxt build",
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
Expand Down

0 comments on commit d723826

Please sign in to comment.