Skip to content

chore: remove indirectly used packages #29

chore: remove indirectly used packages

chore: remove indirectly used packages #29

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.sha }}"
cancel-in-progress: true
env:
BUILD_PLATFORMS: linux/amd64,linux/arm64
GHCR_SLUG: ghcr.io/shahradelahi/cfw-proxy
TAG: dev
permissions:
contents: read
packages: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm -r install --frozen-lockfile
- run: pnpm --if-present format:check
- run: pnpm --if-present lint
image:
if: github.repository == 'shahradelahi/docker-cfw-proxy'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Publish
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: "${{ env.BUILD_PLATFORMS }}"
tags: "${{ env.GHCR_SLUG }}:${{ env.TAG }}"