Skip to content

Release 3.11.0

Release 3.11.0 #3054

Workflow file for this run

name: Preview (within a pull request)
on:
pull_request:
branches:
- dev
- main
- 'dev-patch'
- 'patch-*'
types: [opened, edited, synchronize, reopened]
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
check-latest: true
- name: Check Node version
run: node -v
- name: Update NPM version
run: npm install -g "npm@^7.6.3"
- name: Install
run: npm ci
- name: Test
run: npm test
- name: Coverage
uses: codecov/codecov-action@v1
- name: Build Docs
run: npm run build:docs
- name: Build Storybook
run: npm run build:storybook
- name: Deploy Doc Preview to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './website/react-magma-docs/public'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: false
alias: docs-preview-${{ github.event.number }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Deploy Storybook to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './storybook-static'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: false
alias: storybook-preview-${{ github.event.number }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}