Skip to content

Update package.json #548

Update package.json

Update package.json #548

name: Release
on:
push:
branches: [main, beta]
jobs:
publish-new-package:
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
token: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: yarn install
- name: Unit Tests
run: yarn test
- name: Release to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
- name: Deploy to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to Github Pages
run: yarn deploy-storybook --ci
env:
GH_TOKEN: palmetto:${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: https://npm.pkg.github.com/
scope: '@palmetto'
- name: Release to GitHub Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: yarn publish