This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
Bump json5 from 1.0.1 to 1.0.2 #105
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 Release | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
publish-release: | |
permissions: | |
contents: write | |
if: | | |
github.event.pull_request.merged == true && | |
startsWith(github.event.pull_request.head.ref, 'release/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# We check out the release pull request's base branch, which will be | |
# used as the base branch for all git operations. | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Get Node.js version | |
id: nvm | |
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ steps.nvm.outputs.NODE_VERSION }} | |
- uses: MetaMask/action-publish-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: yarn setup | |
- uses: MetaMask/action-publish-gh-pages@v2 | |
with: | |
build-command: build-storybook | |
source-directory: storybook-static | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |