Skip to content

Commit

Permalink
feat: Project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyzwezdin committed Jan 13, 2024
1 parent 6cb5403 commit 6a3f16c
Show file tree
Hide file tree
Showing 10 changed files with 12,999 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
name: Release
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: '20'
- run: npm ci
- run: npx semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_BOT_CHAT_ID: ${{ vars.TELEGRAM_BOT_CHAT_ID }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

lib
.idea
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
27 changes: 27 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const common = require('@sergeyzwezdin/semantic-release-commits-config');

module.exports = {
...common,
plugins: [
...common.plugins,
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json'],
message: 'Update package.json version to ${nextRelease.version}'
}
],
'@semantic-release/github',
[
'semantic-release-telegram-bot',
{
notifications: [
{
chatIds: process.env.TELEGRAM_BOT_CHAT_ID
}
]
}
]
]
};
Loading

0 comments on commit 6a3f16c

Please sign in to comment.