-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#2291)!: upgrade angular & react components
BREAKING CHANGE: test with dry-run
- Loading branch information
1 parent
db76130
commit 1733ede
Showing
4 changed files
with
62 additions
and
4 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,56 @@ | ||
name: Alpha Release CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- alpha-dry-run-release | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "20" | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- run: npm ci | ||
|
||
- name: Get last successful commit | ||
uses: nrwl/nx-set-shas@v3 | ||
id: last_successful_commit | ||
with: | ||
main-branch-name: alpha | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Test | ||
run: npm run test | ||
|
||
- name: Build | ||
run: npx nx run-many --target=build --all --prod --exclude=angular,react,angular-tests,angular-tests-e2e | ||
|
||
- name: Update Web components documentation | ||
run: cp libs/web-components/README.md dist/libs/web-components | ||
|
||
- name: Remove types file for now | ||
run: rm dist/libs/web-components/index.d.ts | ||
|
||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx nx affected --target release --base=${{ steps.last_successful_commit.outputs.base }} -- --dry-run --no-ci |
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