Skip to content

Commit

Permalink
add publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Mar 28, 2024
1 parent 7d1a11e commit 47089f5
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/blui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
name: codecov-report
verbose: true

build:
build_login_workflow:
runs-on: ubuntu-latest

strategy:
Expand All @@ -91,4 +91,28 @@ jobs:
with:
name: dist
if-no-files-found: error
path: login-workflow/dist
path: login-workflow/dist

publish_login_workflow:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') }}
needs: build_login_workflow
strategy:
matrix:
node-version: [18.x]
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || 'dev' }}
steps:
- uses: actions/checkout@v4
- name: Download dist
uses: actions/download-artifact@v3
with:
name: dist
path: login-workflow/dist
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- run: yarn --frozen-lockfile
- run: yarn publish:package -b ${{env.BRANCH}}

0 comments on commit 47089f5

Please sign in to comment.