Skip to content

feat: support jobs without rights field #83

feat: support jobs without rights field

feat: support jobs without rights field #83

Workflow file for this run

name: ci
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
env:
TEST_TAG: user/create-subtraction:test
jobs:
commitlint:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Commitlint
uses: wagoid/commitlint-github-action@v6
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: docker build --target base .
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
id: build-push
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
target: test
- name: Test
run: docker run ${{ env.TEST_TAG }}
release:
runs-on: ubuntu-22.04
if: github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install semantic-release
run: npm i semantic-release@v23.0.0 conventional-changelog-conventionalcommits@8.0.0
- name: Release
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release