Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Manually Publish

Manually Publish #58

Workflow file for this run

name: Manually Publish
on: workflow_dispatch
jobs:
info:
name: Check commit
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- id: commit
run: echo "message=${{ github.event.head_commit.message }}" >> $GITHUB_OUTPUT
outputs:
commitMsg: ${{ steps.commit.outputs.message }}
publish:
name: Publish
needs: [info]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.PA_TOKEN }}
- name: Node Install
uses: actions/setup-node@v1
with:
node-version: '18'
- name: Installing Packages
env:
NODE_ENV: development
run: yarn install --frozen-lockfile
- name: Testing Packages
run: yarn test
- name: Releasing Packages
env:
NODE_ENV: production
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}
run: |-
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
yarn lerna:publish