Skip to content

Commit

Permalink
add some publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Jan 31, 2024
1 parent cdb32ef commit feb7643
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/blui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,27 @@ jobs:
branch: master
git-config-name: Brightlayer UI Agent
git-config-email: [email protected]
commit-message: "Automated deployment to GitHub Pages ${{github.sha}}"
commit-message: "Automated deployment to GitHub Pages ${{github.sha}}"

publish:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs: build_library
strategy:
matrix:
node-version: [18.x]
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
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit feb7643

Please sign in to comment.