Skip to content

ci: add permissions (#443) #42

ci: add permissions (#443)

ci: add permissions (#443) #42

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
- ci/action
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Install
run: yarn
- name: Build
run: yarn release
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: dist/docs/browser
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}