Release #3
Workflow file for this run
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 | |
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 |