Skip to content

initial commit

initial commit #1

Workflow file for this run

name: Semantic Release Workflow
on:
push:
branches:
- main
- develop
- staging
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20.8.1"
- name: Clean dependencies
run: rm -rf node_modules package-lock.json
- name: Install dependencies
run: npm install
- name: Debug environment
run: |
echo "JIRA_HOST: $JIRA_HOST"
echo "JIRA_EMAIL: $JIRA_EMAIL"
echo "JIRA_API_TOKEN: [hidden]"
echo "JIRA_PROJECT_KEY: $JIRA_PROJECT_KEY"
env:
JIRA_HOST: ${{ secrets.JIRA_HOST }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
- name: Run Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_HOST: ${{ secrets.JIRA_HOST }}
JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
run: npx semantic-release