Publish to NPM #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to NPM | |
on: | |
workflow_dispatch: | |
inputs: | |
prerelease: | |
description: 'Whether this is a prerelease. If so, then the latest tag will not be updated in npm.' | |
required: true | |
type: boolean | |
dry_run: | |
description: 'Whether to run the release in dry-run mode. If so, then the package will not be published.' | |
required: true | |
type: boolean | |
jobs: | |
build-publish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Needed to obtain release secrets | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/publish-npm | |
with: | |
prerelease: ${{ inputs.prerelease }} | |
dry_run: ${{ inputs.dry_run }} | |
aws_assume_role: ${{ vars.AWS_ROLE_ARN }} |