Skip to content

Commit

Permalink
upgrade to v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Jun 7, 2021
1 parent d52248d commit 6cc6997
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,23 @@ jobs:
node-version: "14.x"
- run: yarn
- run: yarn lint
- run: yarn test
- run: yarn test

- name: whether create tag
run: |
message="${{ github.event.head_commit.message }}"
if [[ "${{ github.event_name }}" == "push" && "$message" =~ ^upgrade\ to\ v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "to_create_tag=${message:12}" >> $GITHUB_ENV
fi
- name: create tag
uses: actions/github-script@v3
if: ${{ env.to_create_tag }}
with:
github-token: ${{ github.token }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/v${{ env.to_create_tag }}",
sha: context.sha
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sigodenjs/apitest",
"description": "declartive api testing tool",
"version": "0.8.0",
"version": "0.9.0",
"bin": {
"apitest": "dist/bin.js"
},
Expand Down

0 comments on commit 6cc6997

Please sign in to comment.