Skip to content

Commit

Permalink
ci: test pr tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario34 committed Aug 22, 2023
1 parent d020aa2 commit dd05897
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/create-release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create Release Tag
on:
pull_request:
branches:
- main
- dev
types:
- closed

jobs:
create-tag:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: create and push tag
run: |
git --version
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git tag "v$(node -e "console.log(require('./package.json').version)")"
git log --oneline --graph
git push --tags

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tesla-camera",
"private": true,
"version": "1.0.0",
"version": "1.1.0",
"scripts": {
"dev": "rspack serve -c ./rspack.config.dev.js",
"build": "rspack build -c ./rspack.config.pro.js",
Expand Down

0 comments on commit dd05897

Please sign in to comment.