mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 14:50:48 +08:00
✔
This commit is contained in:
26
.github/workflows/npm-build-fix-to-nexus-test.yaml
vendored
Normal file
26
.github/workflows/npm-build-fix-to-nexus-test.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
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 }}
|
Reference in New Issue
Block a user