Skip to content

Commit

Permalink
feat(release): first official release
Browse files Browse the repository at this point in the history
  • Loading branch information
Asman Umbetov committed Nov 25, 2023
1 parent 72103a4 commit aa5f2ba
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 23 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/deploy.yml

This file was deleted.

24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
name: Semantic Release

on: [push]
on:
push:
branches:
- master

jobs:
semantic_release:
name: Semantic Release
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
husky
@semantic-release/npm
@semantic-release/git
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy
needs: [semantic_release]
runs-on: ubuntu-latest
steps:
- name: Deploy to production
uses: fastndead/[email protected]
with:
service-id: ${{ secrets.SERVICE_ID }}
api-key: ${{ secrets.RENDER_API_KEY }}
wait-for-success: true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.18.0
12 changes: 7 additions & 5 deletions .releserc.cjs → .releaserc.cjs
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
const config = {
branches: [{ name: 'master' }],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/commit-analyzer',
'@semantic-release/npm',
{
preset: 'conventionalcommits',
npmPublish: false,
},
],
'@semantic-release/release-notes-generator',
[
'@semantic-release/git',
{
assets: ['package.json'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
'@semantic-release/github',
],
repositoryUrl: 'https://github.com/fastndead/poker',
dryRun: true,
repositoryUrl: 'https://github.com/fastndead/poker.git',
dryRun: false,
debug: false, // Set to "true" for debugging purposes
}

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@
"devDependencies": {
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.3",
"@semantic-release/npm": "^11.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/express-session": "^1.17.6",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"concurrently": "^7.6.0",
"conventional-changelog-conventionalcommits": "^7.0.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.34.0",
"eslint-plugin-react": "^7.32.2",
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,7 @@
micromatch "^4.0.0"
p-reduce "^2.0.0"

"@semantic-release/github@^9.0.0":
"@semantic-release/github@^9.0.0", "@semantic-release/github@^9.2.3":
version "9.2.3"
resolved "https://registry.yarnpkg.com/@semantic-release/github/-/github-9.2.3.tgz#d8eeba7c00bf3145cee1bb9b60940d475af3e9f9"
integrity sha512-FAjXb1F84CVI6IG8fWi+XS9ErYD+s3MHkP03zBa3+GyUrV4kqwYu/WPppIciHxujGFR51SAWPkOY5rnH6ZlrxA==
Expand All @@ -2118,7 +2118,7 @@
p-filter "^3.0.0"
url-join "^5.0.0"

"@semantic-release/npm@^11.0.0":
"@semantic-release/npm@^11.0.0", "@semantic-release/npm@^11.0.1":
version "11.0.1"
resolved "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-11.0.1.tgz#125dc96670634cb0ac40f85230b2c016e482b993"
integrity sha512-nFcT0pgVwpXsPkzjqP3ObH+pILeN1AbYscCDuYwgZEPZukL+RsGhrtdT4HA1Gjb/y1bVbE90JNtMIcgRi5z/Fg==
Expand Down Expand Up @@ -4241,6 +4241,13 @@ conventional-changelog-angular@^7.0.0:
dependencies:
compare-func "^2.0.0"

conventional-changelog-conventionalcommits@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-7.0.2.tgz#aa5da0f1b2543094889e8cf7616ebe1a8f5c70d5"
integrity sha512-NKXYmMR/Hr1DevQegFB4MwfM5Vv0m4UIxKZTTYuD98lpTknaZlSRrDOG4X7wIXpGkfsYxZTghUN+Qq+T0YQI7w==
dependencies:
compare-func "^2.0.0"

conventional-changelog-writer@^7.0.0:
version "7.0.1"
resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-7.0.1.tgz#e64ef74fa8e773cab4124af217f3f02b29eb0a9c"
Expand Down

0 comments on commit aa5f2ba

Please sign in to comment.