Skip to content

Commit

Permalink
Change the github action:
Browse files Browse the repository at this point in the history
1. trigger tag should start with BS3
2. publish to another empty branch instead of npm.
  • Loading branch information
andy840119 committed Jul 16, 2024
1 parent 0021420 commit 3342e8b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: on-release
on:
push:
tags:
- v*
- bs3*

env:
NX_BRANCH: ${{ github.event.number }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
branch: 'gh-pages'
directory: 'gh-pages'

# publish to npm
# publish package to another branch
npm_publish:
runs-on: ubuntu-latest
needs: build
Expand All @@ -118,7 +118,14 @@ jobs:
with:
path: dist
key: dist-${{ github.run_id }}
- uses: JS-DevTools/npm-publish@v1
with:
package: "dist/ngx-bootstrap/package.json"
token: ${{ secrets.NPM_TOKEN }}

# Deploy to local repo
# see: https://github.com/marketplace/actions/push-git-subdirectory-as-branch
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist
FOLDER: dist/ngx-bootstrap
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}-release

0 comments on commit 3342e8b

Please sign in to comment.