Skip to content

Correction to deploy step #7

Correction to deploy step

Correction to deploy step #7

name: Deploy
on:
push:
branches:
- release-candidate
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
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
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: release
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}