Skip to content

[CI/CD] github actions updated #28

[CI/CD] github actions updated

[CI/CD] github actions updated #28

Workflow file for this run

name: Publish
on:
workflow_dispatch:
branches: [ main ]
inputs:
agreement:
description: "Run manually?"
type: choice
options:
- "yes"
- "no"
default: "no"
required: true
workflow_run:
workflows: [ "CI" ]
branches: [ main ]
types:
- completed
#jobs:
# publish:
# if: |
# github.event.inputs.agreement == 'yes' ||
# github.event.workflow_run.conclusion == 'success'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v3
# with:
# node-version: '16.x'
# registry-url: 'https://registry.npmjs.org'
# # Defaults to the user or organization that owns the workflow file
# scope: '@garvae'
# - run: yarn
# - run: yarn publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
test-publish:
runs-on: ubuntu-latest
steps:
- name: Print echo publish
run: echo 'PUBLISH WORKFLOW'

Check failure on line 44 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 44