Skip to content

Bump cookie and express #3830

Bump cookie and express

Bump cookie and express #3830

# This workflow is for deploying Storybook to Chromatic [email protected] account, it will consume CHROMATIC_PROJECT_TOKEN in Github secrets.
# Further details on Chromatic setup: https://www.chromatic.com/docs/github-actions
name: Publish Chromatic
on:
push:
branches-ignore:
- 'gh-pages' # 👈 Excludes the gh-pages branch
# - 'master' # 👈 Excludes the master branch
concurrency:
group: compile-${{ github.workflow }}-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18' ]
name: Build and test on Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'npm'
always-auth: 'true'
registry-url: 'https://nexus.tools.services.qld.gov.au/nexus/repository/npm_all/'
- name: npmrc
run: |
npm -v
node -v
cat /home/runner/work/_temp/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NEXUSREADONLY2NPMTOKEN }}
- name: Install #run on lint step (Which is cached)
run: | # Install packages
npm install --prefer-offline --no-audit --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.NEXUSREADONLY2NPMTOKEN }}
# `npm rebuild` will run all those post-install scripts for us.
- name: rebuild and prepare
run: npm rebuild && npm run prepare --if-present
- name: Build
run: |
npm run build
- name: Test 🔧
run: |
npm run test-ci
- name: Test release 🔧
run: |
npm run test-release
- name: Publish to Chromatic
if: ${{ github.actor != 'dependabot[bot]' }}
uses: chromaui/action@v1
# Options required to the GitHub Chromatic Action
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
token: ${{ secrets.GH_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: "storybook-static"