Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert changes to release script #93

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,19 @@ jobs:
- name: Install node modules and verify build
run: npm ci && npm run build-release

- name: Publish
- name: Release
if: github.repository == 'morganstanley/ts-mocking-bird'
uses: JS-DevTools/npm-publish@v2
id: publish
uses: justincy/github-action-npm-[email protected]
id: release
with:
token: ${{ secrets.NPM_TOKEN }}
token: ${{ secrets.RELEASE_TOKEN }}

- name: Print release output
if: ${{ steps.publish.outputs.type }}
run: echo Release ID ${{ steps.publish.outputs.id }}

if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}

- uses: "marvinpinto/action-automatic-releases@latest"
if: ${{ steps.publish.outputs.type }}
- name: Publish
if: steps.release.outputs.released == 'true'
uses: JS-DevTools/npm-publish@v1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "${{ steps.publish.outputs.tag }}"
token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morgan-stanley/ts-mocking-bird",
"version": "1.1.2",
"version": "1.1.3",
"description": "A fully type safe mocking, call verification and import replacement library for jasmine and jest",
"license": "Apache-2.0",
"author": "Morgan Stanley",
Expand Down
Loading