Skip to content

NPM publish

NPM publish #10

name: NPM publish
on:
workflow_dispatch:
inputs:
nodeauthtoken:
required: true
type: string
jobs:
do_the_thing:
runs-on: ubuntu-latest
steps:
- name: Mask Password
run: |
NODE_AUTH_TOKEN=$(jq -r '.inputs.nodeauthtoken' $GITHUB_EVENT_PATH)
echo ::add-mask::$NODE_AUTH_TOKEN
echo NODE_AUTH_TOKEN=$NODE_AUTH_TOKEN >> $GITHUB_ENV
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}