Skip to content

Commit

Permalink
publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Apr 3, 2024
1 parent 090c1c6 commit 6be4650
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/blui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,26 +242,26 @@ jobs:
git-config-email: [email protected]
commit-message: "Automated deployment to GitHub Pages ${{github.sha}}"

# publish:
# runs-on: ubuntu-latest
# if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') }}
# needs: build_library
# 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: dist
# - uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# registry-url: 'https://registry.npmjs.org'
# - run: yarn --frozen-lockfile
# - run: yarn publish:package -b ${{env.BRANCH}}
publish:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') }}
needs: build_library
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: dist
- uses: actions/setup-node@v3
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 6be4650

Please sign in to comment.