forked from segmentio/analytics-next
-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (43 loc) · 1.03 KB
/
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
name: Release
on:
workflow_dispatch:
inputs:
version:
type: choice
description: The new version to build and publish
required: true
default: 'patch'
options:
- major
- minor
- patch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- browser
- core
- node
steps:
- uses: actions/checkout@v3
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Set Git Identity
run: |
git config --global user.name "Customer.io"
git config --global user.email "[email protected]"
- name: Install & Build
run: |
yarn install --frozen-lockfile
yarn build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd packages/${{ matrix.package }}
npm version ${{ github.event.inputs.version }}
npm publish