Skip to content

Commit

Permalink
fix: publish to github action (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmandM committed May 15, 2024
1 parent b0b6e9a commit f1b4e20
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
tag: "${{ steps.update_version.outputs.version_number }}"
generateReleaseNotes: true
prerelease: ${{ inputs.prerelease }}
draft: false


publish-npm:
Expand Down Expand Up @@ -116,13 +115,13 @@ jobs:
- run: npm ci
- run: npm run compile

- name: Update Package Name
- name: Update Package Name and Registry, and Publish
run: |
sed -i 's,"name": "ts-mock-imports","name": "@emandm/ts-mock-imports",' package.json
cat package.json
- run: echo registry=https://npm.pkg.github.com/emandm >> .npmrc
- run: |
echo registry=https://npm.pkg.github.com/emandm >> .npmrc
if [[ ${{ inputs.prerelease }} == 'true' ]]; then
npm publish --dry-run
else
Expand Down

0 comments on commit f1b4e20

Please sign in to comment.