Skip to content

Commit

Permalink
chore: create tag
Browse files Browse the repository at this point in the history
  • Loading branch information
joannechen1223 committed Mar 12, 2024
1 parent 4e717cb commit 8ed1e87
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: lint/test/typecheck
on:
push:
branches:
- master
- main
pull_request:
branches-ignore:
branches-ignore:
- recnet-api-dev

permissions:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/recnet-api-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- master
- recnet-api-dev
- recnet-api/create-ci
path:
- 'apps/recnet-api/**'
pull_request:
branches:
- recnet-api-dev
Expand Down Expand Up @@ -45,8 +45,7 @@ jobs:
version_bump:
runs-on: ubuntu-latest
if: github.event_name == 'push' &&
github.ref == 'refs/heads/recnet-api/create-ci' &&
contains(github.event.head_changes, 'apps/recnet-api/package.json')
github.ref == 'refs/heads/recnet-api/create-ci'
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -60,3 +59,14 @@ jobs:
- name: Use extracted version
run: |
echo "Extracted version: ${{ steps.extract_version.outputs.version }}"
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.extract_version.outputs.version }}',
sha: context.sha
})
2 changes: 1 addition & 1 deletion apps/recnet-api/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "recnet-api",
"version": "1.0.1"
"version": "1.0.2"
}

0 comments on commit 8ed1e87

Please sign in to comment.