Skip to content

Commit

Permalink
feat(github-actions): Added new workflow for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mGallee committed Nov 26, 2020
1 parent 9162360 commit 732bb7b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Workflow for publishing a new patch version via tag push

name: Npm Publish

on:
push:
branches:
- 'master'
- 'github-action-publish'
tags:
- 'publish-latest'

defaults:
run:
working-directory: frontend/alanda

jobs:
publish:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run publish
2 changes: 1 addition & 1 deletion frontend/alanda/publish-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ npm login --registry=https://repo.alanda.io/repository/alanda/ || {
npm version "${CURRENT_PACKAGE_VERSION}"
exit 1;
}
npm publish
# npm publish
echo 'Done!'

0 comments on commit 732bb7b

Please sign in to comment.