Merge pull request #128 from birotaio/bugfix/security #258
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Node setup 📦 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.1 | |
- name: Authenticate for private NPM packages 🔑 | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: Install and Build 🔧 | |
run: | | |
yarn install | |
yarn build:sb | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: storybook-static # The folder the action should deploy. |