-
Notifications
You must be signed in to change notification settings - Fork 217
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
10 changed files
with
7,023 additions
and
16 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,7 +1,6 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
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,69 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/ci.yml | ||
permissions: | ||
contents: read | ||
|
||
release: | ||
needs: test | ||
|
||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Elixir | ||
id: setup-beam | ||
uses: erlef/[email protected] | ||
with: | ||
version-type: strict | ||
version-file: .tool-versions | ||
|
||
- name: Restore dependencies cache | ||
uses: actions/[email protected] | ||
env: | ||
cache-key: deps | ||
with: | ||
key: ${{ env.cache-key }}-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }} | ||
restore-keys: | | ||
${{ env.cache-key }}-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} | ||
${{ env.cache-key }}-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }} | ||
path: | | ||
deps | ||
_build | ||
- name: Install dependencies | ||
run: | | ||
mix local.hex --force | ||
mix do deps.get, deps.compile | ||
- name: Use Node.js LTS | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".tool-versions" | ||
|
||
- name: Install packages | ||
run: npm ci | ||
|
||
- name: Audit npm signatures | ||
run: npm audit signatures | ||
|
||
- name: Run Semantic Release | ||
run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | ||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} |
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,12 +1,13 @@ | ||
*.ez | ||
*.iml | ||
*.swp | ||
.DS_Store | ||
.envrc | ||
/.elixir_ls | ||
/.idea | ||
/.vscode | ||
/_build | ||
/deps | ||
/.idea | ||
/doc | ||
/.elixir_ls | ||
/.vscode | ||
/node_modules | ||
erl_crash.dump | ||
*.ez | ||
*.swp | ||
*.iml | ||
.DS_Store | ||
.tool-versions |
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,90 @@ | ||
{ | ||
"branches": [ | ||
"master", | ||
{ | ||
"name": "dev", | ||
"prerelease": "alpha", | ||
"channel": "alpha" | ||
} | ||
], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "conventionalcommits", | ||
"releaseRules": [], | ||
"parserOpts": { | ||
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] | ||
} | ||
} | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"parserOpts": { | ||
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] | ||
}, | ||
"writerOpts": { | ||
"commitsSort": ["subject", "scope"] | ||
} | ||
} | ||
], | ||
[ | ||
"semantic-release-replace-plugin", | ||
{ | ||
"replacements": [ | ||
{ | ||
"files": ["mix.exs"], | ||
"from": "@version \".*\"", | ||
"to": "@version \"${nextRelease.version}\"", | ||
"results": [ | ||
{ | ||
"file": "mix.exs", | ||
"hasChanged": true, | ||
"numMatches": 1, | ||
"numReplacements": 1 | ||
} | ||
], | ||
"countMatches": true | ||
}, | ||
{ | ||
"files": ["README.md"], | ||
"from": "\"~> .*\"", | ||
"to": "\"~> ${nextRelease.version}\"", | ||
"results": [ | ||
{ | ||
"file": "README.md", | ||
"hasChanged": true, | ||
"numMatches": 2, | ||
"numReplacements": 2 | ||
} | ||
], | ||
"countMatches": true | ||
} | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md", | ||
"changelogTitle": "# Changelog" | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": ["mix.exs", "README.md", "CHANGELOG.md"], | ||
"message": "chore(release): v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
], | ||
"@semantic-release/github", | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"publishCmd": "mix hex.publish --yes" | ||
} | ||
] | ||
] | ||
} |
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,3 @@ | ||
erlang 27.2 | ||
elixir 1.18.1 | ||
nodejs 22.13.0 |
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.