name: Nightly Build

on:
  # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
  schedule:
  - cron: "30 0 * * *"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Setup Git
        shell: bash
        run: bash ./config/deploy-nightly.sh setup ${{ secrets.GITHUB_TOKEN }}

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 14
          cache: 'npm'

      - name: Install dependencies
        run: |
          npm config set package-lock false
          npm install

      - name: Deploy
        shell: bash
        run: bash ./config/deploy-nightly.sh build


name: Nightly Build

on:
  # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
  schedule:
  - cron: "30 0 * * *"

permissions: write-all

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Setup Git
        shell: bash
        run: bash ./config/deploy-nightly.sh setup ${{ secrets.GITHUB_TOKEN }}

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 14
          cache: 'npm'

      - name: Install dependencies
        run: |
          npm config set package-lock false
          npm install

      - name: Deploy
        shell: bash
        run: bash ./config/deploy-nightly.sh build


Fix permission for nightly build
chore(build): Fix permission for nightly build

https://github.com/naver/billboard.js/actions/runs/3406736100/jobs/5665683447#step:6:173
