Skip to content

Commit

Permalink
Merge pull request #61 from Roaders/main
Browse files Browse the repository at this point in the history
Update release process
  • Loading branch information
Davidhanson90 authored May 20, 2022
2 parents de52421 + 819d917 commit 398f7b3
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 28 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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/needle'
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 }}
25 changes: 0 additions & 25 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 2 additions & 2 deletions 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,5 +1,5 @@
{
"version": "0.3.13",
"version": "0.3.14",
"description": "A small & lightweight dependency injection container for use in multiple contexts like Angular, React & node.",
"name": "@morgan-stanley/needle",
"license": "Apache-2.0",
Expand Down

0 comments on commit 398f7b3

Please sign in to comment.