-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): add release workflow with
release-it
- Loading branch information
Alexey Ryazanov
committed
Jul 11, 2023
1 parent
8f234ab
commit 4b88806
Showing
8 changed files
with
8,887 additions
and
3,661 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,4 +1,4 @@ | ||
name: Release | ||
name: release | ||
|
||
on: | ||
push: | ||
|
@@ -12,33 +12,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- run: echo 'Test' | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# token: ${{ secrets.TINKOFF_BOT_PAT }} | ||
# fetch-depth: 0 | ||
# | ||
# - name: Git Identity | ||
# run: | | ||
# git config --global user.name 'tinkoff-bot' | ||
# git config --global user.email '[email protected]' | ||
# | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: '14.x' | ||
# registry-url: 'https://registry.npmjs.org' | ||
# | ||
# - name: Clean install | ||
# run: npm ci | ||
# | ||
# - name: Create release commit and tag | ||
# run: | | ||
# npm run version -- --no-push | ||
# | ||
# - name: Push release commit and tag | ||
# run: git push --follow-tags | ||
# | ||
# - name: Publish packages | ||
# run: npm run publish:ci | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.TINKOFF_NPM_AUTH_TOKEN }} | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Release | ||
run: npm run release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.TINKOFF_NPM_AUTH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"git": { | ||
"commitMessage": "chore(release): version ${version}" | ||
}, | ||
"github": { | ||
"release": true | ||
}, | ||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"preset": "conventionalcommits", | ||
"infile": "CHANGELOG.md" | ||
} | ||
} | ||
} |
Oops, something went wrong.