fix: fix location of package.json #5
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
name: CI_Frontend | |
permissions: | |
contents: write | |
packages: write | |
issues: write | |
pull-requests: write | |
deployments: write | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm ci | |
working-directory: ./project | |
- name: Run Unit Tests | |
run: npm run ci:test | |
working-directory: ./project | |
- name: Build Application | |
run: npm run ci:build | |
working-directory: ./project | |
semantic-versioning: | |
runs-on: ubuntu-latest | |
needs: build # Ensure this job runs after the build job | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch the full history to calculate the next version | |
- name: Get next version | |
id: get_next_version | |
uses: thenativeweb/get-next-version@main | |
with: | |
prefix: "v" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.get_next_version.outputs.version }} | |
release_name: Release ${{ steps.get_next_version.outputs.version }} | |
body: | | |
content change | |
draft: false | |
prerelease: false |