Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_VERSION: "22"

jobs:
docker:
Expand All @@ -21,7 +22,7 @@ jobs:
- name: Setup Nodejs
uses: actions/setup-node@v6
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: npm ci
Expand All @@ -33,7 +34,7 @@ jobs:
npx semantic-release --dry-run
cat VERSION.env
source VERSION.env
echo "::set-output name=version::$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Set up QEMU
if: ${{ steps.version.outputs.VERSION != ''}}
Expand Down Expand Up @@ -65,6 +66,7 @@ jobs:
- uses: sigstore/[email protected]

- name: Image Signing
if: ${{ steps.version.outputs.VERSION != ''}}
run: |
cosign sign --yes \
-a "repo=${{ github.repository }}" \
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: "22"

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -24,4 +27,24 @@ jobs:

# Quick sanity check that the image exists
- name: Verify image was built
run: docker image inspect hello-universe-db:latest > /dev/null
run: docker image inspect hello-universe-db:latest > /dev/null

semantic:
name: "Semantic Release Dry Run"
needs: [build]
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Setup nodeJs
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}

- name: Check out code into the Go module directory
uses: actions/checkout@v6

- name: Install dependencies
run: npm ci

- name: Semantic Release Dry Run
run: npx semantic-release --dry-run
41 changes: 7 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@semantic-release/github": "latest",
"@semantic-release/npm": "latest",
"husky": "^9.1.7",
"semantic-release": "^25.0.2",
"semantic-release": "^25.0.3",
"standard-version": "^9.5.0"
}
}