Skip to content

v2.5.30

v2.5.30 #918

Workflow file for this run

on: [push, pull_request]
name: Build, Test and maybe Publish
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Link
run: yarn link:yarn
- name: Test
run: yarn test
publish:
name: Publish
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Git Identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: yarn publish:all:build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Setup Prd EU
run: node update-version.js
- name: Build EU
run: yarn build:eu
- name: Publish Prd EU
run:
cd packages/types && npm publish --tag prd-eu && cd ../core && npm publish --tag prd-eu && cd ../chat-sdk &&
npm publish --tag prd-eu && cd ../liveblog-sdk && npm publish --tag prd-eu
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}