Skip to content

Commit

Permalink
ci: being able to release
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Oct 27, 2023
1 parent f93dc2a commit da9121f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: rules-pact
on:
push:
branches:
- main
jobs:
test_job:
runs-on: ubuntu-20.04
container:
image: gcr.io/bazel-public/bazel:6.3.2
volumes:
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
options: -e USER="root" -u="root"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch bazel cache
uses: actions/cache@v3
with:
path: /tmp/cache
key: bazel-cache
restore-keys: |
bazel-cache
- name: Bazel test
run: bazel --output_user_root=/tmp/cache test --test_output=errors //...
release_job:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
9 changes: 9 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/git",
"@semantic-release/github"
]
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"name": "rules_pact"
"name": "rules_pact",
"devDependencies": {
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"semantic-release": "^21.0.2"
}
}

0 comments on commit da9121f

Please sign in to comment.