Skip to content

Commit

Permalink
got the env var name wrong and the input type
Browse files Browse the repository at this point in the history
  • Loading branch information
wesgro committed Jul 11, 2024
1 parent ba9bb13 commit fd85c8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
workflow_dispatch:
inputs:
release-type:
type: choice
description: 'Release type (one of): patch, minor, major, prepatch, preminor, premajor, prerelease'
required: true
default: prerelease
Expand Down Expand Up @@ -30,6 +31,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 20
cache: 'pnpm'

Expand Down Expand Up @@ -86,7 +88,7 @@ jobs:
- name: Publish
run: npm publish --verbose --access public --tag ${{ env.RELEASE_TAG }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Push repository changes
- name: Push changes to repository
Expand Down

0 comments on commit fd85c8f

Please sign in to comment.