Skip to content

Migrate to changesets (#565) #550

Migrate to changesets (#565)

Migrate to changesets (#565) #550

Workflow file for this run

name: Release
on:
push:
branches:
- beta
- master
permissions: {}
jobs:
release:
name: Publish & Deploy
permissions:
contents: write
runs-on: ubuntu-latest
env:
SKU_TELEMETRY: false
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
- name: Set up Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Publish to npm
uses: changesets/action@v1
with:
publish: yarn release
version: yarn stage
env:
GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEEK_OSS_CI_NPM_TOKEN }}
- name: Publish Storybook
run: yarn storybook:build && yarn storybook:deploy -- --ci --host-token-env-variable=GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}