Skip to content

Merge pull request #14 from zahmo/ang17-patch-17.2.x #35

Merge pull request #14 from zahmo/ang17-patch-17.2.x

Merge pull request #14 from zahmo/ang17-patch-17.2.x #35

Workflow file for this run

#workflow creates a dist branch for each library, based on its package version
#should create the following 2 dist branches per lib project
#for example the material library project with package version x.x.x will create branches:
#dist_material
#dist_material_vx.x.x
name: CreateDist
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup Node
uses: actions/setup-node@v3
- run: npm ci
- run: npm run build:libs
- name: version core
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/core/package.json'
- name: dist core versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_core_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/core
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist core
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_core
FOLDER: ./dist/@zajsf/core
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: version bootstrap3
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/bootstrap3/package.json'
- name: dist bootstrap3 versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap3_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/bootstrap3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist bootstrap3
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap3
FOLDER: ./dist/@zajsf/bootstrap3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: version bootstrap4
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/bootstrap4/package.json'
- name: dist_bootstrap4 versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap4_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/bootstrap4
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist_bootstrap4
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap4
FOLDER: ./dist/@zajsf/bootstrap4
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: version material
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/material/package.json'
- name: dist material versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_material_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/material
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist material
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_material
FOLDER: ./dist/@zajsf/material
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}