Skip to content

Commit

Permalink
Remove inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Jul 24, 2023
1 parent 5d3575b commit fde61e2
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 @@ -57,21 +57,21 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
if: ${{ github.event.inputs.package_manager == 'pnpm' }}
if: ${{ inputs.package_manager == 'pnpm' }}
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: ${{ github.event.inputs.package_manager }}
cache: ${{ inputs.package_manager }}
registry-url: https://registry.npmjs.org/
scope: "@kingstinct"

- run: git config user.name "$(git log -n 1 --pretty=format:%an)"
- run: git config user.email "$(git log -n 1 --pretty=format:%ae)"
- run: ${{ github.event.inputs.package_manager }} install --frozen-lockfile
if: ${{ github.event.inputs.package_manager != 'npm' }}
- run: ${{ inputs.package_manager }} install --frozen-lockfile
if: ${{ inputs.package_manager != 'npm' }}
- run: npm ci
if: ${{ github.event.inputs.package_manager == 'npm' }}
- run: echo "versionTag=`npm version ${{ github.event.inputs.release_type }} -m "%s ${{ github.event.inputs.description }}"`" >> $GITHUB_ENV
if: ${{ inputs.package_manager == 'npm' }}
- run: echo "versionTag=`npm version ${{ inputs.release_type }} -m "%s ${{ inputs.description }}"`" >> $GITHUB_ENV
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -81,6 +81,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ env.versionTag }} ${{ github.event.inputs.description }}
name: ${{ env.versionTag }} ${{ inputs.description }}
tag_name: ${{ env.versionTag }}
generate_release_notes: true

0 comments on commit fde61e2

Please sign in to comment.