Skip to content

refactor: include comma on const declaration #52

refactor: include comma on const declaration

refactor: include comma on const declaration #52

Workflow file for this run

name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
step: ["lint:check", "format:check", "build", "test:docker"]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Run ${{ matrix.step }}
run: yarn ${{ matrix.step }}
env:
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
push:
needs: [build]
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
checks: write
packages: write
steps:
- uses: actions/checkout@v4
# Build and push container image to GCR (only on main branch)
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container image to GitHub Container Registry
uses: docker/build-push-action@v4
with:
push: true
tags: |
ghcr.io/ardriveapp/${{ github.event.repository.name }}:latest
ghcr.io/ardriveapp/${{ github.event.repository.name }}:${{ github.sha }}