-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up continuous delivery (#12)
* chore: install nx semver * chore: set up continous delivery * chore: install ngx-deploy * fix: publish command * chore: update alpha version
- Loading branch information
1 parent
a2bc232
commit 8abecff
Showing
8 changed files
with
1,065 additions
and
7 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,4 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": {} | ||
} |
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,39 @@ | ||
name: Release | ||
|
||
on: | ||
- workflow_dispatch | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
uses: ./.github/actions/setup | ||
with: | ||
git_bot_token: ${{ secrets.GIT_BOT_TOKEN }} | ||
|
||
- name: Release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ inputs.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
# Use npx instead of yarn because yarn automagically sets NPM_* environment variables | ||
# like NPM_CONFIG_REGISTRY so npm publish ends up ignoring the .npmrc file | ||
# which is set up by `setup-node` action. | ||
shell: bash | ||
run: npx nx affected --base=last-release --target=version | ||
|
||
- name: Tag last-release | ||
shell: bash | ||
run: git tag -f last-release | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ inputs.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
force: true | ||
tags: true |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit $1 |
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
Oops, something went wrong.