Pre-Release #27
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: Pre-Release | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: | |
- browser | |
- core | |
- node | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
cache: 'yarn' | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@customerio' | |
- 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.GITHUB_TOKEN }} | |
run: | | |
cd packages/${{ matrix.package }} | |
npm version prerelease | |
npm publish |