Skip to content

Merge pull request #6 from magiclabs/PDEEXP-2046-migrate-segment-ht #2

Merge pull request #6 from magiclabs/PDEEXP-2046-migrate-segment-ht

Merge pull request #6 from magiclabs/PDEEXP-2046-migrate-segment-ht #2

Workflow file for this run

name: Publish
on:
push:
branches:
- 'master'
- 'staging'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
publish:
runs-on: ubuntu-20.04
name: Publish
environment: production
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: |
yarn -v
yarn install --immutable
- name: Build
run: yarn run build
- name: Create Release
run: yarn auto shipit -v