Skip to content

Commit

Permalink
Merge branch 'main' into pr/undefined-internals
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Apr 22, 2024
2 parents 58c9999 + adc6524 commit a83bf86
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: "The version to publish"
required: true
tag:
description: "Tag"
required: true
default: "latest"
type: choice
options:
- latest
- snapshot
- next
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -15,6 +28,7 @@ jobs:
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish --provenance --access public
- run: npm pkg set "version=${{ inputs.version }}"
- run: npm publish --provenance --tag ${{ inputs.tag }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a83bf86

Please sign in to comment.