-
Notifications
You must be signed in to change notification settings - Fork 36
54 lines (49 loc) · 1.53 KB
/
latest-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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