Skip to content

🏗️ Build develop #2422

🏗️ Build develop

🏗️ Build develop #2422

Workflow file for this run

name: 🏗️ Build
on:
push:
paths-ignore:
- .github/**
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
checks: write
contents: write
deployments: read
id-token: write
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
run-name: 🏗️ Build ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ✅ Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.VENLY_GITHUB_ACTIONS_TOKEN }}
- name: 🔍 Get Version
uses: ./.github/actions/get_version
- name: ⬆️ Bump Version
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix-') || startsWith(github.ref, 'refs/heads/release-'))
uses: ./.github/actions/bump_version
with:
token: ${{ secrets.VENLY_GITHUB_ACTIONS_TOKEN }}
- name: 🛠️ Setup Node.js 16.x
uses: actions/setup-node@v3
id: node_setup
with:
node-version: 16.x
- name: 🏗️ Build Node
run: |
#!/bin/bash
set -x
npm i
npm run build
- name: 📋 Log Current Version Before Publish
run: |
echo "Version before publishing: $(jq -r '.version' package.json)"
- name: 🚀 Publish Npm
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix-') || startsWith(github.ref, 'refs/heads/release-'))
uses: ./.github/actions/publish_npm
with:
npm_token: ${{ secrets.NPM_KEY }}
token: ${{ secrets.VENLY_GITHUB_ACTIONS_TOKEN }}
- name: 🔄 Merge Back
if: startsWith(github.ref, 'refs/heads/hotfix-') || startsWith(github.ref, 'refs/heads/release-')
uses: ./.github/actions/merge_back
with:
branch: ${{ github.ref_name }}
token: ${{ secrets.VENLY_GITHUB_ACTIONS_TOKEN }}