Skip to content

Bump step-security/harden-runner from 2.4.1 to 2.5.0 (#215) #1

Bump step-security/harden-runner from 2.4.1 to 2.5.0 (#215)

Bump step-security/harden-runner from 2.4.1 to 2.5.0 (#215) #1

Workflow file for this run

name: Build Demo
on: [push]
permissions:
contents: read
jobs:
deploy:
permissions:
contents: write # for peaceiris/actions-gh-pages to push pages branch
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
with:
egress-policy: audit
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: '16'
- run: npm install
working-directory: ./javascript
- run: npm install
working-directory: ./demo
- run: npm run build
working-directory: ./demo
- name: Publish Demo
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./demo/static