Skip to content

[CI/CD] github actions updated #23

[CI/CD] github actions updated

[CI/CD] github actions updated #23

Workflow file for this run

name: Publish
on:
workflow_dispatch:
branches:
- main
inputs:
agreement:
description: "Run manually?"
type: choice
options:

Check failure on line 10 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 10
- "yes"
- "no"
default: "no"
required: true
workflow_run:
workflows: [ "CI" ]
branches: [ master ]
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 }}