Skip to content

Permissions updated

Permissions updated #9

name: Deploy
on:
push:
branches:
- release-candidate
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
contents: write
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build library
run: npm run build
- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "🤖 GitHub Bot"
git config user.email "<>"
- name: Deploy to release branch
uses: crazy-max/ghaction-github-pages@v4
if: ${{ github.ref == 'refs/heads/release-candidate' }}
with:
target_branch: release
build_dir: ./dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}