Files
composite-actions/.github/workflows/npm-build-fix-to-nexus-test.yaml
严浩 b821c98ddd
2025-04-04 16:03:38 +08:00

26 lines
813 B
YAML

on:
pull_request:
paths:
- "npm-build-fix-to-nexus/**"
- ".github/workflows/npm-build-fix-to-nexus-test.yaml"
push:
paths:
- "npm-build-fix-to-nexus/**"
- ".github/workflows/npm-build-fix-to-nexus-test.yaml"
env:
TZ: Asia/Shanghai
jobs:
upload_npm_fix_to_nexus:
runs-on: ubuntu-latest
steps:
- name: Prepare
run: |
mkdir npm-build-fix-to-nexus
- uses: yanhao98/composite-actions/npm-build-fix-to-nexus@main
with:
package_json_url: 'https://www.unpkg.com/fuck-your-code/package.json'
pack_workspace: './npm-build-fix-to-nexus'
build_command: 'whoami'
nexus_post_url: 'https://nexus.oo1.dev/service/rest/v1/components?repository=npm-hosted'
nexus_auth: ${{ secrets.NEXUS_AUTH }}