Skip to content

Commit

Permalink
publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Feb 1, 2024
1 parent 3f92e57 commit 1e93653
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: Publish Package to npmjs
on:
workflow_dispatch:
inputs:
dryRun:
description: 'DryRun?'
options:
description: 'Publish options'
required: true
default: '--dry-run'
type: choice
options:
- '--dry-run'
- ' '
- '--provenance --access public'

jobs:
log-inputs:
runs-on: ubuntu-latest
steps:
- run: |
echo "--dry-run: $DRY_RUN"
echo "--dry-run: $OPTIONS"
env:
DRY_RUN: ${{ inputs.dryRun }}
OPTIONS: ${{ inputs.options }}
build:
runs-on: ubuntu-latest
Expand All @@ -33,7 +33,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm publish ${DRY_RUN} --provenance --access public
- run: npm publish ${OPTIONS}
env:
DRY_RUN: ${{ inputs.dryRun }}
OPTIONS: ${{ inputs.options }}
NODE_AUTH_TOKEN: ${{ secrets.VTBOT_NPM_TOKEN }}

0 comments on commit 1e93653

Please sign in to comment.