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 3b7e9c0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/create-release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'
token: ${{ secrets.CI_TOKEN }}

- 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 3b7e9c0

Please sign in to comment.