Skip to content

Release to Latest NPM Channel #95

Release to Latest NPM Channel

Release to Latest NPM Channel #95

name: Release to Latest NPM Channel
on:
workflow_dispatch:
inputs:
comments:
required: false
description: "Comments?"
default: "No comment"
jobs:
release:
runs-on: ubuntu-latest
name: Release
timeout-minutes: 30
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- uses: actions/setup-node@v2.5.1
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
always-auth: true
cache: npm
- name: Install npm dependencies
run: |
npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Run build and lerna version and publish
run: |
git config --global user.email "github-actions-bot@users.noreply.github.com"
git config --global user.name "site-eng-github-actions"
make main-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
HUSKY: 0
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
HUSKY: 0