Skip to content

build: remove babel and webpack #512

build: remove babel and webpack

build: remove babel and webpack #512

Workflow file for this run

name: Netlify
on: push
jobs:
Deploy:
runs-on: ubuntu-latest
env:
NETLIFY_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- uses: nelonoel/[email protected]
- run: npx typedoc
- name: Docsify variables
env:
DOMAIN: ${{ env.BRANCH_NAME == 'master' && 'forms.hypermedia.app' || format('{0}--shaperone.netlify.app', env.BRANCH_NAME) }}
run: npx json -I -f dist/variables.json -e "this.playground='https://$DOMAIN/playground'"
- name: Publish preview
uses: tpluscode/action-netlify-deploy@nvm
if: env.NETLIFY_TOKEN
with:
NETLIFY_AUTH_TOKEN: ${{ env.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_MESSAGE: Preview ${{ env.BRANCH_NAME }}
build_directory: dist
deploy_alias: ${{ env.BRANCH_NAME }}
NETLIFY_DEPLOY_TO_PROD: ${{ env.BRANCH_NAME == 'master' }}
- name: Status check
uses: Sibz/[email protected]
if: env.NETLIFY_TOKEN
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: Netlify Site
state: success
target_url: https://${{ env.BRANCH_NAME }}--shaperone.netlify.app