-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from fingerprintjs/feature/INTER-544-revisit
[INTER-544] Revisit pre-release
- Loading branch information
Showing
13 changed files
with
54 additions
and
4,173 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 |
---|---|---|
@@ -1,65 +1,11 @@ | ||
name: Analyze Commit Messages | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 | ||
id: commitlint | ||
- if: ${{ failure() && steps.commitlint.outcome == 'failure' }} | ||
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd | ||
with: | ||
header: Commitlint | ||
recreate: true | ||
message: | | ||
## Wrong commit message format detected | ||
We use [Semantic Commit Messages](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716) in our project. | ||
> **Warning** | ||
> Probably you forgot to activate local git hooks. | ||
Run the next command in the project root to activate local hooks: | ||
```sh | ||
sh ./install_hooks.sh | ||
``` | ||
More info you can find in [job logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
- if: ${{ success() }} | ||
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd | ||
with: | ||
header: Commitlint | ||
hide: true | ||
hide_classify: "OUTDATED" | ||
release-notes-comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Collect semantic-release-info | ||
id: semantic_release_info | ||
uses: fingerprintjs/action-semantic-release-info@v1 | ||
- if: ${{ steps.semantic_release_info.outputs.no_release == 'false' }} | ||
name: Add comment to the PR | ||
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd | ||
with: | ||
header: ReleasePreview | ||
recreate: true | ||
message: | | ||
## This PR will create a ${{steps.semantic_release_info.outputs.type}} release :rocket: | ||
${{steps.semantic_release_info.outputs.notes}} | ||
- if: ${{ steps.semantic_release_info.outputs.no_release == 'true' }} | ||
name: Add comment to the PR | ||
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd | ||
with: | ||
header: ReleasePreview | ||
recreate: true | ||
message: | | ||
## This PR will not create a new release :rocket: | ||
analyze-commits: | ||
name: Analyze commits | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1 |
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 |
---|---|---|
@@ -1,41 +1,20 @@ | ||
name: Release | ||
|
||
name: 'Release' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release Version | ||
runs-on: "ubuntu-latest" | ||
environment: production | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' # See 'Supported distributions' for available options | ||
java-version: '11' | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "7.3" | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: Install Composer Dependencies | ||
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist | ||
|
||
- name: Install Yarn dependencies | ||
run: yarn install --cwd=release | ||
|
||
- name: Release | ||
run: ./release/node_modules/.bin/semantic-release --extends ./release/.releaserc.js | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} | ||
HUSKY: 0 | ||
name: 'Publish new version' | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-server-sdk.yml@v1 | ||
with: | ||
language: php | ||
language-version: '8.3' | ||
prepare-command: | | ||
composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist | ||
appId: ${{ vars.APP_ID }} | ||
secrets: | ||
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_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
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.