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

Publish

Publish #17

Workflow file for this run

name: Publish
on:
workflow_run:
workflows: [ "CI" ]
branches: [ master ]
types:
- completed
jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
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:dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}