Update package.json #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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/@ajsf/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/@ajsf/core | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: dist core | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist_core | |
FOLDER: ./dist/@ajsf/core | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: version bootstrap3 | |
uses: nyaa8/package-version@v1 | |
with: | |
path: './dist/@ajsf/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/@ajsf/bootstrap3 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: dist bootstrap3 | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist_bootstrap3 | |
FOLDER: ./dist/@ajsf/bootstrap3 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: version bootstrap4 | |
uses: nyaa8/package-version@v1 | |
with: | |
path: './dist/@ajsf/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/@ajsf/bootstrap4 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: dist_bootstrap4 | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist_bootstrap4 | |
FOLDER: ./dist/@ajsf/bootstrap4 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: version material | |
uses: nyaa8/package-version@v1 | |
with: | |
path: './dist/@ajsf/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/@ajsf/material | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: dist material | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: dist_material | |
FOLDER: ./dist/@ajsf/material | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |