Skip to content

Update

Update #3

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'
- run: 'cp README.md LICENSE ./types'
- uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: types
publish_branch: package
force_orphan: true