Version Packages (#743) #719
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: | |
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@v4 | |
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.NPM_TOKEN }} | |
- name: Build Storybook | |
run: yarn storybook:build | |
- name: Deploy Storybook | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
publish_dir: ./dist-storybook |