-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
204 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Angular Build' | ||
description: 'Angular Build' | ||
inputs: | ||
app: | ||
description: 'The specific test application' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Create App | ||
run: bash build.sh ${{ inputs.app }} | ||
working-directory: ./test/angular | ||
shell: bash | ||
|
||
- name: Install Cypress | ||
run: npm run cy:install | ||
working-directory: ./test/angular/${{ inputs.app }} | ||
shell: bash | ||
|
||
- name: Build Angular App | ||
run: npm run build | ||
working-directory: ./test/angular/${{ inputs.app }} | ||
shell: bash |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Build' | ||
description: 'Build' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Clean install | ||
shell: bash | ||
run: npm ci | ||
|
||
- name: Define Nx cache | ||
uses: nrwl/nx-set-shas@v4 | ||
|
||
- name: Check format | ||
shell: bash | ||
run: npx nx format:check | ||
|
||
- name: Check spelling | ||
shell: bash | ||
run: npm run spell | ||
|
||
- name: Lint & Test & Build | ||
shell: bash | ||
run: npx nx run-many -t build --projects=tag:scope:release | ||
|
||
- name: Releae dry-run | ||
shell: bash | ||
run: npx nx release publish -d |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Setup Release' | ||
description: 'Setup Release' | ||
inputs: | ||
token: | ||
description: 'The GitHub token required.' | ||
npm-token: | ||
description: 'The NPM authentication token required to publish.' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Git Identity | ||
run: | | ||
git config --global user.name 'baopso' | ||
git config --global user.email '[email protected]' | ||
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
|
||
- name: Create .npmrc | ||
run: | | ||
cat << EOF > "$HOME/.npmrc" | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
shell: bash | ||
env: | ||
NPM_TOKEN: ${{ inputs.npm-token }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
Release: | ||
name: 🚀 Release | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/workflows/actions/setup | ||
- uses: ./.github/workflows/actions/release-setup | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
npm-token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
- uses: ./.github/workflows/actions/release-build | ||
|
||
# - name: Create Release Pull Request or Publish to npm | ||
# id: changesets | ||
# uses: changesets/action@v1 | ||
# with: | ||
# publish: npm run release | ||
# env: | ||
# HUSKY_DISABLED: 1 | ||
# BAL_DS_RELEASE: true | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
# - name: Echo Changeset output | ||
# shell: bash | ||
# run: | | ||
# echo "Changeset published - ${{ steps.changesets.outputs.published }}" | ||
# echo "Changeset publishedPackages - ${{ steps.changesets.outputs.publishedPackages }}" | ||
# echo "Changeset hasChangesets - ${{ steps.changesets.outputs.hasChangesets }}" | ||
# echo "Changeset pullRequestNumber - ${{ steps.changesets.outputs.pullRequestNumber }}" | ||
|
||
# - name: Update lock file | ||
# if: steps.changesets.outputs.published == 'true' | ||
# run: npm install | ||
# shell: bash | ||
|
||
# - name: Commit lock file | ||
# if: steps.changesets.outputs.published == 'true' | ||
# uses: EndBug/add-and-commit@v9 | ||
# with: | ||
# add: 'package-lock.json' | ||
# message: 'chore(): update lock file' | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Tag release | ||
# if: steps.changesets.outputs.published == 'true' | ||
# uses: thejeff77/[email protected] | ||
# with: | ||
# tag: 'v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}' | ||
# message: 'v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}' | ||
|
||
# - name: Update changelog file | ||
# if: steps.changesets.outputs.published == 'true' | ||
# run: awk 'NR==1 {print "# Changelog"} NR!=1' packages/components/CHANGELOG.md > CHANGELOG.md | ||
# shell: bash | ||
|
||
# - name: Commit changelog | ||
# if: steps.changesets.outputs.published == 'true' | ||
# uses: EndBug/add-and-commit@v9 | ||
# with: | ||
# add: 'CHANGELOG.md' | ||
# message: 'chore(): update changelog' | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Merge main -> production | ||
# if: steps.changesets.outputs.published == 'true' | ||
# uses: devmasx/merge-branch@master | ||
# with: | ||
# type: now | ||
# from_branch: main | ||
# target_branch: production | ||
# message: ':bookmark: release: ${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}' | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,5 +50,6 @@ | |
"figmaTokensAssetPath": "packages/tokens/dist/figma" | ||
} | ||
} | ||
} | ||
}, | ||
"tags": ["scope:docs", "type:docs"] | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:dev", "type:lib"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "type:lib"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "type:lib"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "type:lib"] | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,5 +76,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "scope:docs", "scope:visual", "type:package"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "scope:docs", "scope:visual", "type:package"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "type:package"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "type:package"] | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,5 +100,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "scope:docs", "scope:visual", "type:package"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "scope:docs", "scope:visual", "type:package"] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "scope:docs", "scope:visual", "type:package"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ | |
} | ||
} | ||
}, | ||
"tags": [] | ||
"tags": ["scope:release", "scope:docs", "type:package"] | ||
} |
Oops, something went wrong.