Bump the npm-dependencies group across 1 directory with 22 updates #186
Workflow file for this run
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: Publish and deploy | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
deploy-to-npm: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && !contains(github.event.pull_request.labels.*.name, 'Version bump') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: gh workflow run deploy.yml | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }} | |
publish-gh-pages: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && !contains(github.event.pull_request.labels.*.name, 'Version bump') }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Storybook | |
run: | | |
npm run compile:sass-govuk | |
npm run compile:sass | |
npm run build:storybook --quiet | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: storybook # The folder the action should deploy. |