Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Publish

Publish #18

Workflow file for this run

name: Publish
on:
workflow_dispatch:
branches: [ master ]
inputs:
agreement:
description: "Run manually?"
type: choice
options:
- "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 }}