Skip to content

Shared GitHub workflows #6

Shared GitHub workflows

Shared GitHub workflows #6

Workflow file for this run

name: CI/CD Workflow
on:
pull_request:
push:
branches:
- main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: '18'
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WRITERSIDE_ARTIFACT: 'webHelpDCS2-all.zip'
WRITERSIDE_DOCKER_VERSION: '242.21870'
WRITERSIDE_INSTANCE: 'Writerside/dcs'
jobs:
setup:
uses: ./.github/workflows/_base.yml
with:
github_token: ${{ env.GITHUB_TOKEN }}

Check failure on line 21 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI/CD Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 21, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_TOKEN .github/workflows/ci.yml (Line: 45, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_TOKEN
node_version: '18'
commitlint:
needs: setup
uses: ./.github/workflows/commitlint_check.yml
with:
edit: '.git/COMMIT_EDITMSG'
eslint:
needs: setup
uses: ./.github/workflows/eslint_check.yml
with:
maxWarnings: '0'
prettier:
needs: setup
uses: ./.github/workflows/prettier_check.yml
generate-writerside-docs:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/generate_writerside_docs.yml
with:
github_token: ${{ env.GITHUB_TOKEN }}
writerside_instance: 'Writerside/dcs'
artifact_name: 'webHelpDCS2-all.zip'
docker_version: 242.21870
semantic-release:
needs: setup
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/semantic_release.yml
with:
npm_token: ${{ env.NPM_TOKEN }}
github_token: ${{ env.GITHUB_TOKEN }}