Skip to content

Merge pull request #1080 from newrelic/develop #330

Merge pull request #1080 from newrelic/develop

Merge pull request #1080 from newrelic/develop #330

Workflow file for this run

name: Release
on:
push:
branches:
- main
env:
BOT_NAME: svc-docs-eng-opensource-bot
BOT_EMAIL: [email protected]
jobs:
generate-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
# Ensure lerna can do the proper version bump
# https://github.com/lerna/lerna/issues/2542
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Configure NPM
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > .npmrc
- name: Lerna Publish
env:
GIT_AUTHOR_NAME: ${{ env.BOT_NAME }}
GIT_AUTHOR_EMAIL: ${{ env.BOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ env.BOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ env.BOT_EMAIL }}
GH_TOKEN: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
run: yarn release