Skip to content

Commit

Permalink
chore(workflow): lerna publish (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
JAdshead authored Nov 17, 2020
1 parent fc40f6a commit fdae264
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lerna-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish
on:
workflow_dispatch:
inputs:
command:
description: 'Confirm you are aware of the consequences'
required: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Install yarn
run: |-
NODE_ENV=development yarn
- name: Test packages
run: yarn test
- name: Release packages
env:
NODE_ENV: production
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |-
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
yarn lerna:publish"

0 comments on commit fdae264

Please sign in to comment.