Add npm/publish/action.yaml

This commit is contained in:
Zakary Timson 2023-12-14 03:51:26 +00:00
parent 90c8a973eb
commit 7141bd54a6

33
npm/publish/action.yaml Normal file
View File

@ -0,0 +1,33 @@
name: NPM Publish
description: Push to registry
inputs:
registry:
type: string
required: false
description: NPM registry FQDM
default: ${{github.server_url}}
owner:
type: string
required: false
description: Owner to publish to
default: ${{github.repository_owner}}
token:
type: string
required: false
description: Access Token
default: ${{secrets.DEPLOY_TOKEN}}
runs:
using: composite
steps:
- name: Setup registry
run: |
echo "_authToken=${{inputs.token}}" > .npmrc
echo "registry=${{inputs.registry}}/api/packages/${{inputs.owner}}/npm/" >> .npmrc
shell: sh
- name: Publish
uses: docker://node
with:
args: /bin/sh -c "npm publish"