Skip to content

Commit

Permalink
ci: setup releases
Browse files Browse the repository at this point in the history
  • Loading branch information
william-mba committed Jan 17, 2025
1 parent 632cdda commit ab49ff2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ngx-tailwind-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
branches: [ "next" ]
paths: [ "projects/ngx-tailwind-core/**" ]

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTHTOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -46,3 +49,23 @@ jobs:
with:
name: ${{ matrix.project }}-${{ github.run_id }}
path: "dist/${{ matrix.project }}"
- if: github.event_name == 'push' && github.ref == 'refs/heads/release'
name: Publish @beta
run: |
cd dist/${{ matrix.project }}
pnpm version ${{ vars.BETA_VERSION }}
pnpm publish --tag beta
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
name: Publish @latest
run: |
cd dist/${{ matrix.project }}
pnpm version ${{ vars.LATEST_VERSION }}
pnpm publish --tag latest
- if: github.event_name == 'push' && github.ref == 'refs/heads/next'
name: Publish @alpha
run: |
cd dist/${{ matrix.project }}
pnpm version ${{ vars.ALPHA_VERSION }}
pnpm publish --tag alpha
23 changes: 23 additions & 0 deletions .github/workflows/ngx-tailwind-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
branches: [ "next" ]
paths: [ "projects/ngx-tailwind-ui/**" ]

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTHTOKEN }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,3 +53,23 @@ jobs:
with:
name: ${{ matrix.project }}-${{ github.run_id }}
path: "dist/${{ matrix.project }}"
- if: github.event_name == 'push' && github.ref == 'refs/heads/release'
name: Publish @beta
run: |
cd dist/${{ matrix.project }}
pnpm version ${{ vars.BETA_VERSION }}
pnpm publish --tag beta
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
name: Publish @latest
run: |
cd dist/${{ matrix.project }}
pnpm version ${{ vars.LATEST_VERSION }}
pnpm publish --tag latest
- if: github.event_name == 'push' && github.ref == 'refs/heads/next'
name: Publish @alpha
run: |
cd dist/${{ matrix.project }}
pnpm version ${{ vars.ALPHA_VERSION }}
pnpm publish --tag alpha

0 comments on commit ab49ff2

Please sign in to comment.