Release to Latest NPM Channel #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |