Skip to content

Merge pull request #96 from morganstanley/dependabot/npm_and_yarn/fol… #32

Merge pull request #96 from morganstanley/dependabot/npm_and_yarn/fol…

Merge pull request #96 from morganstanley/dependabot/npm_and_yarn/fol… #32

name: Create Release
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install node modules and verify build
run: npm ci && npm run build-release
- name: Release
if: github.repository == 'morganstanley/ts-mocking-bird'
uses: justincy/[email protected]
id: release
with:
token: ${{ secrets.RELEASE_TOKEN }}
- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}
- name: Publish
if: steps.release.outputs.released == 'true'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}