Skip to content

Initiation-password-creator #19

Initiation-password-creator

Initiation-password-creator #19

Workflow file for this run

name: Package compiler
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
compile:
name: 'Compile'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./package.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: 'npm run types && npm run doc'
- run: 'cp README.md LICENSE ./types'
- uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: types
publish_branch: package
force_orphan: true
- uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: documentation
publish_branch: documentation
force_orphan: true