Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bump the github-actions group with 3 updates (#8) #24

Bump the github-actions group with 3 updates (#8)

Bump the github-actions group with 3 updates (#8) #24

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
SKIP: npm-check
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run check
- name: build
env:
BASE_PATH: "/${{ github.event.repository.name }}"
run: |
npm run build
- name: Upload Artifacts
if: github.ref_name == 'master' && github.event_name == 'push'
uses: actions/upload-pages-artifact@v4
with:
path: "build/"
deploy:
needs: build
if: github.ref_name == 'master' && github.event_name == 'push'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4