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 a8e91a2 commit 3f92e57
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Package to npmjs
on:
workflow_dispatch:
inputs:
dryRun:
description: 'DryRun?'
required: true
default: '--dry-run'
type: choice
options:
- '--dry-run'
- ' '

jobs:
log-inputs:
runs-on: ubuntu-latest
steps:
- run: |
echo "--dry-run: $DRY_RUN"
env:
DRY_RUN: ${{ inputs.dryRun }}
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm publish ${DRY_RUN} --provenance --access public
env:
DRY_RUN: ${{ inputs.dryRun }}
NODE_AUTH_TOKEN: ${{ secrets.VTBOT_NPM_TOKEN }}

0 comments on commit 3f92e57

Please sign in to comment.