-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (40 loc) · 1.13 KB
/
release-develop.yml
File metadata and controls
48 lines (40 loc) · 1.13 KB
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
name: Release NPM Packages
on:
workflow_dispatch:
inputs:
sha:
description: 'Current git sha for the website to pull from'
required: true
push:
branches:
- develop
jobs:
release:
runs-on: ubuntu-latest
environment: develop
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22.9.0
cache: npm
- name: "Install dependencies"
run: npm ci --workspaces --include-workspace-root
- name: "Build"
run: npm run build
- name: "NPM Identity"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- name: Run Lerna Release
run: npm run publish:canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Trigger website build & deployment
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
run: |
curl -X POST -d {} $NETLIFY_BUILD_HOOK